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!
Syntax color display
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard