Here in this wiki the SyntaxHighlight extension is at work. Usually one uses the <syntaxhighlight> tag to mark those parts which shall be highlighted. Pages like MediaWiki:Gadget-site.css are highlighted. But there I find no <syntaxhighlight> tag in the wiki code. Will this extension hightlight such css pages without the tag as well?
Extension talk:Highlightjs Integration
Jump to navigation Jump to search
Reply to "Will CSS be highlighted?"
Reply to "Background is black"
Reply to "Extension not working in VisualEditor"
Reply to "Extension won't work unless you rename the folder"
Will CSS be highlighted?
Background is black
I installed this extension (v1.2). I'm running MediaWiki v1.32 on a shared linux computer (SiteGround), PHP 7.0.33. The code highlighting works, but the background is black instead of light gray.
I fixed it by changing the style to vs.css in extension.json. I assumed the default look would be similar to what is shown in the description.
Extension not working in VisualEditor
When I try to edit a page using VisualEditor, not is shown in the code lines. Is there a way to make it work in VisualEditor like SyntaxHighlight_GeSHi does?
I'm using version 1.2 in xampp with MediaWiki 1.31.1, PHP 7.0.33.
Extension won't work unless you rename the folder
While the installation instructions are correct, there is a major issue (at least at time of writing) one needs to be aware of or else enabling this extension will make your Wiki unreachable.
The folder inside the download is called Highlightjs_Integration-master instead of just Highlightjs_Integration. This long name will be truncated by many file managers, so the difference isn't always obvious. Just copying the folder from the download to your extensions folder, will make your wiki generate a HTTP 500 error.
Rename the folder to Highlightjs_Integration before enabling the extension, and everything should be fine.
There are no older topics