Page MenuHomePhabricator

Support Pygments styles
Open, Needs TriagePublicFeature

Description

Pygments, the backend of the SyntaxHighlight, comes with some built-in styles. (Pygments style gallery)
But the extension always serves the 'default' style.

Feature summary (what you would like to be able to do):

There are few options:

  1. Modify updateCSS.php maintenance script to accept a style parameter and encourage skin developers to generated and include the style.
  2. Introduce a wiki-scope configuration variable to set a style that applies to all syntaxhighlights.
  3. Add a parameter to <syntaxhighlight> for style. example: <syntaxhighlight pystyle="vs">
  4. Provide CSS classes to be used by whoever wants. <syntaxhighlight class="style-vs">

Use case(s) (describe the actual underlying problem which you want to solve, and not only a solution):

Maybe there are demands as templates for that exist. See https://www.mediawiki.org/wiki/Template:Codesample.