Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AWK syntax highlighting

 
Post new topic   Reply to topic    Community Forum Index -> Tips
View previous topic :: View next topic  
Author Message
dtksh



Joined: 19 May 2005
Posts: 1

PostPosted: Thu May 19, 2005 3:48 am    Post subject: AWK syntax highlighting Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB