Different page types (for example articles in main namespace and templates, or pages in different content models) 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 for wikitext:
- Light color theme for articles in main namespace (used by default)
- Theme(s) for people who are color-blind
- No syntax highlighting at all (T419339)
- Same vendor themes provided in non-wikitext
Kinds of color themes for codes:
- Several themes covering different editors preferences (we are using a fork of @fsegurai/codemirror-themes)