Extension:SyntaxHighlightThemes

Category:Extensions without an imageCategory:MIT licensed extensions
MediaWiki extensions manual
SyntaxHighlightThemes
Release status: stableCategory:Stable extensions
Implementation User interfaceCategory:User interface extensions
Description Allows users to choose between various syntax highlighting themes
Author(s) Nathan Kuenzig (kuenzigntalk)
Latest version 1.0.0
Compatibility policy Master maintains backward compatibility.Category:Extensions with master compatibility policy
MediaWiki 1.35+Category:Extensions with manual MediaWiki version
Database changes No
License MIT License
Download Category:Extensions in GitHub version control
README on GitHub
Category:All extensionsCategory:Extensions not in ExtensionJson

The SyntaxHighlightThemes extension allows users to choose between various syntax highlighting themes when using the SyntaxHighlight extension.

Usage

Once installed, users can change their syntax highlighting theme in their preferences under Appearance. All styles provided by Pygments are supported.

Installation

  • Download and move the extracted SyntaxHighlightThemes folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlightThemes
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'SyntaxHighlightThemes' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

$wgDefaultUserOptions['syntaxhighlight-theme']
The default theme used is the default style from Pygments. Use this option to change the default theme for your wiki
($wgDefaultUserOptions['syntaxhighlight-theme'] = 'monokai'; for example)

See also

Category:Syntax highlighting extensions Category:Extensions with SyntaxHighlight support
Category:All extensions Category:BeforePageDisplay extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions with SyntaxHighlight support Category:Extensions with manual MediaWiki version Category:Extensions with master compatibility policy Category:Extensions without an image Category:GetPreferences extensions Category:MIT licensed extensions Category:ResourceLoaderRegisterModules extensions Category:Stable extensions Category:Syntax highlighting extensions Category:User interface extensions