Extension talk:SyntaxHighlight GeSHi/Archive 2015

=2015=

Code with &lt;dl&gt;s cause bad things
There's a bug that I'm running into:
 * Here's a dt
 * Here's a dd that contains code with line numbers
 * And here's one that doesn't have numbers
 * That did not work so well...
 * That did not work so well...
 * That did not work so well...

Gives:


 * Here's a dt
 * Here's a dd that contains code with line numbers
 * And here's one that doesn't have numbers
 * That did not work so well...
 * That did not work so well...
 * That did not work so well...

Eric Wieser (talk) 19:28, 22 May 2015 (UTC)

Loading method
Hello, It is said in the extension's wikipage that SyntaxHighlight_GeSHi should be load with : In my case (mw 1.24), it breaks the server (it gives blank page for every requests)

This worked fine :

Can be a good idea to adapt the page to avoid other mistakes.

Thanks for your work !

Jona (talk) 07:41, 22 June 2015 (UTC)


 * Thanks for mentioning this. This was documented on the extension's page by now. --&#91;&#91;kgh&#93;&#93; (talk) 12:53, 22 July 2015 (UTC)

Wrong C++ highlighting (solved)

 * This is a bug report for the C++ lexer, where can I post it? The GeSHi project in the link on the top of this site does not longer exist … --Prog (talk) 20:18, 26 June 2015 (UTC)
 * I have reported it at pygments, the new base of the SyntaxHighlight extension. --Prog (talk) 15:07, 28 June 2015 (UTC)

I have some wrong highlightings in the Version on de.wikibooks (same as here):

Here are the formal definitions of C++ literals:
 * integer_literal
 * floating_literal
 * character_literal
 * string_literal
 * user_literal (not described above, but also not supported by GeSHi)

Kind regards! --Prog (talk) 18:57, 26 June 2015 (UTC)

line property destroys copy & paste code (solved)
When I use the line property, I can't select the source without the line numbers:

This is very disruptive! The line property is a very nice feature, but it destroys all my code examples when I use copy & paste, so I can not use it without much trouble for the readers. --Prog (talk) 20:16, 26 June 2015 (UTC)


 * solved via CSS:  on Mediawiki:common.css. --Prog (talk) 15:37, 28 June 2015 (UTC)

MediaWiki:Geshi.css
Since the GeSHi update, all the present code is non-functional, as none of the referenced classes are no longer used. However, what is the status of MediaWiki:Geshi.css? Is it still loaded? 14:42, 28 June 2015 (UTC)


 * I guess this needs to be filed on Phabricator. Currently no developer seems to be involved in looking at this talk page. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 12:51, 22 July 2015 (UTC)


 * Doesn't seem even basic diligence was exercised in testing it or considering the needs of the vast number of end users, given the large number of breaking changes. I wonder why this couldn't be done as a new alternate extension for people who weren't happy with the GeSHi-based one instead of overwriting what was a stable product for years. --QuasarEE (talk) 16:22, 24 July 2015 (UTC)

inline
Please deprecate  and suggest   for proper XML. Some of us (=me+maybe others) still recall the hilarious  in XHTML1, and not all backward steps in HTML5 are better than XHTML1 transitional. –Be..anyone (talk) 22:19, 16 July 2015 (UTC)

Can't use SyntaxHighlight inline with a list
In the past i was able to use the extension Extension:Code with a list like this,
 * the code

And the code block was indent correctly.

But now when i use SyntaxHighlight the same way it brakes horribly (you can see it here http://imgur.com/a/wCjp8), and i need to put the opening tag on a new line to make it work.

I'm running
 * MW 1.25.1
 * SyntaxHighlight 1.0.8.12

-- UPDATE I downloaded a new version of SyntaxHighlight (Version 2.0) from the git, extracted it, and installed with composer, and it seems to work like before.

REL1_24 currently broken
→ Filed as 

To fix this line 39 of "SyntaxHighlight_GeSHi.php" has to be commented out. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 12:49, 22 July 2015 (UTC)

SyntaxHighlight geshi isent working for me
Hi I am using mediawiki 1.26 wmf 17 and latest code from master branch from today my wiki at http://en.random-wikisaur.tk/wiki/MediaWiki:Common.css isent highlighting anything since using new code because of switch from geshi to another syntax highlighter how do I enable it to highlight it is using all the default settings for syntaxhighligh geshi. Paladox2017 (talk) 16:42, 6 August 2015 (UTC)

An omission in the installation instructions
The installation instructions say

Download and place the file(s) in a directory called SyntaxHighlight_GeSHi in your extensions/ folder. Add the following code at the bottom of your LocalSettings.php:

Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Err, what code? Cavila (MW 1.22, MySQL 5.5.37-0, Php 5.4.4-14 squeeze, SMW 1.9.2, SF 2.7) 08:18, 10 August 2015 (UTC)
 * Hi this has been fixed. This was misktake when the template was updated. Should work now Paladox2017 (talk) 13:09, 12 August 2015 (UTC)
 * Okay, it's fine now. Cavila (MW 1.22, MySQL 5.5.37-0, Php 5.4.4-14 squeeze, SMW 1.9.2, SF 2.7) 18:43, 13 August 2015 (UTC)