Page 1 of 1

Syntax Highlighting - Different colors within same block

Posted: Wed Jun 18, 2008 2:20 pm
by conash
I am trying to create a Syntax definition file for the highlighting of Fanuc G-Code (CNC programming code). In many cases I want to highlight the command word differently than the numeric value in a command block e.g. in the command G01 I want to highlight the "G" in orange and the "01" in black. I have seen it done with TextPad, but I don't know how to do it. The help files aren't real good when trying to figure out how to accomplish this. How dod I do this?