Syntax color display

General questions about using TextPad

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

Post Reply
Jiminator
Posts: 3
Joined: Sat Mar 14, 2009 1:46 am
Contact:

Syntax color display

Post by Jiminator »

I'm creating a custom syntax for files which contain codes I'd like to highlight in color. The codes vary from 2-4 characters. I can get the colors working on the 4-character keywords by using PERL=1 and this under [Syntax]:

KeyWordLength = 4

Can't figure out how to color the other codes that are 2-3 characters long that are also keywords that should appear in color. They all start with the same ASCII character, but each may end differently, so I can't use the comment start/end or syntax start/end to make them appear in a different color. I tried to restate the keyword length when switching from [Keywords 1] to [Keywords 2] but it only retains the last length setting in the syntax definition.

oI01 (this works, 4 character keyword)
oT1 (doesn't work)
oA (doesn't work)

Any suggestions?? Thanks!
Post Reply