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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login