seruemme1204 Posted March 29, 2016 Posted March 29, 2016 Hello everybody, I just installed Mediawiki 1.26 on my brand new stevie and nearly everythings fine. The only thing is that I do not get the syntax highlighting working. I did like I was told here (https://www.mediawiki.org/wiki/Extension:SyntaxHighlight): - Downloaded the files, unzipped them and put them in the extensions/SyntaxHighlight_GeSHi in my wiki folder (already existed, renamed it and replaces it by the new one)- Added wfLoadExtension( 'SyntaxHighlight_GeSHi' ); at the end of my localsettings.php -Tried: <syntaxhighlight lang="python" line="1" >def quickSort(arr): less = [] pivotList = [] more = [] if len(arr) <= 1: return arr else: pass</syntaxhighlight>But all he does is telling my that this article is under the category: Articles with syntax highlighting error. I would appreciate any help! Thanks Rudi!
wolstech Posted March 29, 2016 Posted March 29, 2016 Mediawiki is partially incompatible with our servers. We have a few others who use it, but I'm not one of them, so I'm not sure whether this is one of the things that doesn't work. 1
seruemme1204 Posted March 30, 2016 Author Posted March 30, 2016 @Wolstech: Ah, ok, thanks. Which wiki do you use/ which is more compatible? Anyone who uses Mediawiki as well can tell me if highlighting is not supported or if I am doing something wrong? Thanks!
wolstech Posted March 30, 2016 Posted March 30, 2016 The only other user I know of who both uses it and posts here is paladox2014, one of our regular users. Haven't seen him around lately though... Based on this: https://www.mediawiki.org/wiki/Manual:Installation_requirements Mediawiki should (mostly) work...it's the things that need either SSH (maintenance scripts/upgrades) or special server features that are incompatible. We meet the requirements for the main functionality. We do not provide any of the optional items except for ImageMagick and sendmail. Also, the VisualEditor and Scribunto extensions for MediaWiki are not supported. 1
seruemme1204 Posted April 12, 2016 Author Posted April 12, 2016 Thanks Wolstech, paladox2014 could actually hepl me. If anyone wants to use Syntax Highlighting in Mediawiki: Download geshi (https://sourceforge.net/projects/geshi/), place it on your webspace and then just do as you are told here: https://www.mediawiki.org/wiki/Extension:Code/de. That is an older way of Syntax Highlighting that comes without Python and works just fine. Regardsseruemme1204
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now