Syntax highlighting

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
tfabio
Posts: 1
Joined: Wed Sep 24, 2003 7:53 am

Syntax highlighting

Post by tfabio »

I develope programs for the CNC machines.
My instrunctions are G00, G01,G02...,M01,M02,M03 etc..
How I can to highlight this codes without to write all in .syn file?
Thanks a lot...
Fabio :cry:
Kevin
Posts: 28
Joined: Tue Apr 01, 2003 7:55 pm

Post by Kevin »

I had question like this a few days ago. See this:

http://www.textpad.com/forum/viewtopic.php?t=4424

But I don't think it can be done without using a syntax file. Setting it up doesn't take a lot of time. I used MS Excel autofill to generate all the M and G codes, one per row. Then I pasted them into a .syn. All the M codes went into [Keywords 1] and all the G codes went into [Keywords 2]. This way I could assign two different colors to them.

Hope this helps.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

errr... what was wrong with TP's auto fill? ;)
Kevin wrote:I used MS Excel autofill to generate all the M and G codes, one per row.
Post Reply