Extension talk:Code

From mediawiki.org

Doesnt work under 1.16[edit]

When I copied and pasted, I got the error Parse error: syntax error, unexpected ':' in /path/to/mw/extensions/Code/Code.php on line 57. It turned out that the cause was a newline that got inserted into the earlier comment

     #$source = "file_get_contents disabled! Contact Mike Sullivan at x3126 with questions.";

I replaced the name and extension with an email address, removed the newline, and it works fine now.


in Code directory, after syntaxhightlight extension install, create sim-link of geshi lib in Code extension directory

ln -s ../SyntaxHighlight_GeSHi/geshi/ .

and all work

Doesn't work under 1.19.9[edit]

When I load the page with error info, I get this:

Warning: include(): Failed opening 'geshi/geshi.php' for inclusion (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') 
in /<omitted>/mediawiki-1.19.9/extensions/Code/Code.php on line 60

Fatal error: Class 'GeSHi' not found in /<omitted>/mediawiki-1.19.9/extensions/Code/Code.php on line 62

mash-up RawFile/Geshi/CodeFile[edit]

I'm working on Extension:RawCodeFile it's a mix of 2 extensions so I would like to know how could I properly operate? It works under 1.25+ if geshi is installed.