Topic on Extension talk:SyntaxHighlighter

Jump to navigation Jump to search (talkcontribs)

I'm testing with the example, using javascript. And it doesn't have any coloring at all. All it does is surround the text in a dotted line box. There are no php errors (i have errors displayed). Are there dependencies that aren't listed? 21:37, 31 January 2014 (UTC) (talkcontribs)

I had the same problem.

The fix is, to remove the extra one SyntaxHighlighter (boldface in snippet below) while building the $directory variable in 'SyntaxHighlighter.php' in function addHeadItems() somewhere about line 137.

if( count($this->mSyntaxList) > 0 ) {
global $wgScriptPath;
$directory = $wgScriptPath.'/extensions/SyntaxHighlighter';
$scriptTxt = "\n\r";
Reply to "Doesn't color code"