Page 1 of 1
Syntax highlighting
Posted: Wed Sep 24, 2003 8:03 am
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

Posted: Wed Sep 24, 2003 12:31 pm
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.
Posted: Wed Sep 24, 2003 2:57 pm
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.