Extension:SyntaxHighlight/Styling

SyntaxHighlight's code blocks come with preset syntax highlighting colors. On Hydra (light theme) wikis, the highlighter uses the default Pygments highlighting color scheme, while on Hydradark (dark theme) wikis, it uses the Monokai color scheme. Depending on the overall color scheme of a wiki skin, some wikis may wish to restyle the syntax highlighter.

Sample highlighting theme
The following is CSS code for the Monokai syntax highlighting theme (adapted for use on Gamepedia wikis), which is the default highlighting color scheme on dark themed wikis.

Custom highlighting themes
Creating a custom theme for SyntaxHighlight can be very difficult due to its large number of ambiguous class names. The code above may be used as a template for manually creating a theme, or tools such as jwarby's Pygments Theme Builder can be used to generate one.

Some popular premade themes can be downloaded from jwarby's Pygments Theme Library.

Themes from either of the two above tools must be adapted for use on MediaWiki by replacing  with.