User defined language to highlight different parts of a line
-
Hi, I have had a look on here and google, but I can’t find anything that covers what I am trying to do.
Is there a way, using User Defined Languages, to set the styling (I just want different background colours) of blocks of text based purely on the position of the character on the line?
For example, I have a string of alphanumeric characters 20 characters long. I want characters 0-5 to have a green b/g, 6-10 to have a blue b/g and 11-19 to have a yellow background.
Is this possible?
Thanks!
-
@AndrewCliffordOrica said in User defined language to highlight different parts of a line:
I just want different background colours
You can’t reasonably do what you want to the background coloring.
But you can do it, with a plugin, to the foreground coloring, see EnhanceAnyLexer.