VOOZH about

URL: https://phabricator.wikimedia.org/T285859

⇱ ⚓ T285859 Support Pygments styles


Maniphest T285859

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 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 for style. example:
  4. Provide CSS classes to be used by whoever wants.
  5. Allow users to choose a default in Special:Preference.

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

We need to support this in order to support Vector 2022's night mode.

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

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits