ScintillaOrg / lexilla

A library of language lexers for use with Scintilla
https://www.scintilla.org/Lexilla.html
Other
181 stars 65 forks source link

Add option for multi color XML tags #281

Open advice2020 opened 1 week ago

advice2020 commented 1 week ago

I requested this in a program that I am using and I was told that this would be the place to mention this. The default syntax highlighting used for XML tags is all one color. I have seen other applications use two colors for these tags: one for the tag names font and another for the Angle Brackets </> Would it be considered to add the option for using more than one color in Lexilla?

Thank You

nyamatongwe commented 1 week ago

The INDIC_TEXTFORE indicator type can be used by the application to change the colour of the tag name or brackets.

It would likely be OK to add an option specifying another lexical class for the brackets so they could be independent colours if someone is sufficiently motivated to implement this.

One wrinkle is that substyles can now be used to have multiple sets of highlighted tags with different appearance. Duplicating classes so there is a bracket class for each set of tags be more trouble so may be less reasonable.