Extension:SyntaxHighlight PrismJS

From Linux Web Expert

MediaWiki extensions manual
SyntaxHighlight PrismJS
Release status: unknown
Author(s) apple502j
Latest version 1.0.0
MediaWiki
License GNU General Public License 3.0 or later
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

The SyntaxHighlight PrismJS extension provides syntax highlighting using prism.js.

Installation

  • <translate> Download and place the file(s) in a directory called <tvar name=name>SyntaxHighlight PrismJS</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'SyntaxHighlight PrismJS' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

See also

  • SyntaxHighlight for the syntax highlighter used on Wikimedia wikis using Pygments.