Syntax Highlighting

General questions about using TextPad

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

Post Reply
Patrick Lucas

Syntax Highlighting

Post by Patrick Lucas »

I have a probkem with syntax highlighting. In the code below, both instances of the word key are highlighted although the first is a variable name (denoted by the "5" sign) and the second is an actual keyword.

key% = KEY

Does anyone know how to tweak the syntax definition file so that only the "key" after the "=" sign is highlighted? Switching on case-sensitivity is not an option as the language is not case-sensitive.

The same problem occurs if I have the following.

proc key:
key% = KEY
endp

It is almost as if TextPad has to be told "Don't check words finishing with $, %, & or :".

Any help would be much appreciated.
Randolf Mock

Re: Syntax Highlighting

Post by Randolf Mock »

Hi Patrick,

could you please tell me which syntax highlighting file you use?

Randolf
Post Reply