Page MenuHomePhabricator

Add different color themes of syntax highlighting
Open, MediumPublic

Description

Different page types (for example articles in main namespace and templates) have different concentration of different markup elements and it is not trivial task to color all wikitext markup elements since the combination of colors is much less than the combination of wikitext markup elements. Also tastes of editors likely different.

The availability of using different color themes in CodeMirror should help in this case.

Kinds of color themes:

  • Light color theme for articles in main namespace (used by default)
  • Theme(s) for people who are color-blind
  • Several themes covering different editors preferences (need feedback)
  • No syntax highlighting at all (T419339)

Theme selector may be placed on CodeMirror toolbar (T95148)
Also it is possible to add several useful buttons for enable/disable highlighting active line (T162204),
highlighting text inside extension tags and etc...

Related Objects

Event Timeline

Niharika triaged this task as Lowest priority.Nov 7 2017, 11:54 PM
MusikAnimal raised the priority of this task from Lowest to Medium.Mar 4 2026, 8:39 PM

When this is tackled (after T420429), we should migrate the codemirror-colorblind user option to the new theme CM preference, and slowly over time the codemirror-colorblind rows will be deleted.