Description
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:
- Modify maintenance script to accept a style parameter and encourage skin developers to generated and include the style.
- Introduce a wiki-scope configuration variable to set a style that applies to all syntaxhighlights.
- Add a parameter to for style. example:
- Provide CSS classes to be used by whoever wants.
- 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.
Related Objects
Related Objects
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | Feature | None | T285859 Support Pygments styles | ||
| Resolved | SD0001 | T365926 Develop or select a dark-friendlier color palette for syntax highlighting |
Event Timeline
Lens0021 created this task.Jun 30 2021, 1:15 PM
Diskdance added a subtask: T365926: Develop or select a dark-friendlier color palette for syntax highlighting.Jun 17 2024, 2:45 AM
Diskdance mentioned this in T365926: Develop or select a dark-friendlier color palette for syntax highlighting.
Diskdance subscribed.
Comment ActionsThis is required for T365926. We should open up style selection in Special:Preference and provide defaults for light and dark mode.
Diskdance updated the task description. (Show Details)
I_Am_Andume subscribed.Jun 17 2024, 6:35 PM
Rexogamer subscribed.Jul 20 2024, 11:00 AM
Trappist_the_monk subscribed.Sep 13 2024, 9:37 PM
taavi closed subtask T365926: Develop or select a dark-friendlier color palette for syntax highlighting as Resolved.Sep 29 2024, 5:05 PM
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
