Page 1 of 1

Coloring keywords of varying length

Posted: Thu Feb 26, 2009 5:56 pm
by maltster
Hi,

Is there any way to designate some keywords as being of a specific length while others can vary?

For example, I need to color \( and \) even when they might be surrounded by alphanumeric characters, so setting KeyWordLength to 2 would be a great solution, except that I also need to color other keywords that have more than 2 characters.

I have a feeling that I'm out of luck. Am I?

Thanks

Posted: Fri Feb 27, 2009 12:18 am
by Bob Hansen
You are very much in touch with your feelings. No Can Do what you want.

Currently syntaxing is limited to complete "words" separated by "space" characters. No wild cards, no char counts, etc.

Posted: Fri Feb 27, 2009 2:55 pm
by maltster
Thanks for saving me from further beating of my head against a wall.

Posted: Fri Mar 20, 2009 3:01 pm
by Tomas Eklund
There are other text editors that will let you do that. At least one. It lets you define your own syntax coloring schemes using regular expressions. I assume I cannot tell you which text editor here on the forum without breaking the rules, but let's just say that the feature is "Just Great"...