AWK syntax highlighting

Usage tips, posted by users. No questions here please.

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

Post Reply
dtksh
Posts: 1
Joined: Thu May 19, 2005 3:35 am

AWK syntax highlighting

Post by dtksh »

Here's a tip for anyone using the AWK syntax definition, awk.syn, available from the add-ons page (www.textpad.com/add-ons/syna2g.html).

I found that if I change the first line of the file from 'C=1' to 'PERL=1', TextPad will correctly highlight regexp constants that contain the '#' comment character, e.g:

/^#$/

If C=1, the '#' character will be treated as the start of a comment and highlighted accordingly. If PERL=1, it will be treated, correctly, as a literal '#'.

D.
Post Reply