Coloring keywords of varying length

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
maltster
Posts: 2
Joined: Thu Feb 26, 2009 5:38 pm

Coloring keywords of varying length

Post 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
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
maltster
Posts: 2
Joined: Thu Feb 26, 2009 5:38 pm

Post by maltster »

Thanks for saving me from further beating of my head against a wall.
User avatar
Tomas Eklund
Posts: 40
Joined: Tue Mar 16, 2004 1:15 am
Location: Sweden

Post 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"...
Post Reply