Jump to content

Extension talk:SyntaxHighlighter

Add topic
From mediawiki.org
Latest comment: 10 years ago by Eloy in topic Wrong in templates


Problem at this ext. installtion

[edit]

Hey. I have been create a wiki. Before the installtion, I put this extension in the extensions' folder. Now , when I run a code in my wiki, it's does'nt show! tnx for any help. You can see my wiki (in Hebrew) here. איתי בריבוע (talk) 14:21, 17 July 2012 (UTC)Reply

Did you add the line to LocalSettings.php? 91.217.119.254 10:28, 31 August 2012 (UTC)Reply
Sorry for late comment...
I added thay in.
When I'm adding the tags nothing appears.
The website is now http://itayandbunny.capnix.com/KPMWIKI/mediawiki-1.21.3/
The extension is TreeAndMenu.
Thank in advance,
R.P איתי בריבוע (talk) 09:41, 7 December 2013 (UTC)Reply

Concerning: Text Overflow

[edit]

I have been wondering how to stop text overflow which usually breaks all table setting and overlaps into the CSS. I have tried miscellaneous wrapper markup but none have worked.

My Question: Is there a text wrapper feature that stops overflow that I am missing? Habatchii (talk) 14:24, 15 September 2012 (UTC)Reply

Doesn't color code

[edit]

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?

76.102.26.116 21:37, 31 January 2014 (UTC)Reply

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";
: 213.23.91.62 10:44, 23 January 2015 (UTC)Reply

Wrong in templates

[edit]

This extension have 3 problems when used in a template:

  1. Did not recognized the langs in the template, even copying the example.
  2. There is no way to pass a parameters, except with magic word {{#tag:source}}. It should be nice to include a preprocess="true" tag, in order to do so.
  3. I can't find a way to leave the tag open, or use <includeonly> or <noinclude> with it (it did not recognize it). Eloy (talk) 13:43, 13 November 2015 (UTC)Reply