Extension:HighlightJS

From Organic Design wiki
Info.svg This code is in our Git repository here.

Note: If there is no information in this page about this code and it's a MediaWiki extension, there may be something at mediawiki.org.

We've been using GeSHi for our syntax highlighting for ten years now, and today I decided it was time to change to a client-side version instead. So I looked around on the net a bit and found a free open source one that I liked which was highlightjs.org, and made a quick wrapper for it which is this extension. It allows the same syntax to be used as normal, e.g. <source lang="LANG">. For more information about installation and usage, see MW:Extension:HighlightJS.

See also

  • highlightjs.org - Home page of the JS highlighter
  • CodeTidy - a utility to format code in accord with the MediaWiki code guidelines