I'm using textpad to write G-Code for a CNC mill, the issue is that in this mill in you forget a "dot" in the number you use for coordinate the machine defaults to microns.
So if I write for example
Code: Select all
G01 X120. F1000
Code: Select all
G01 X120 F1000
This is hard to spot and can lead to some bad crashes.
To make thing even worse the dot needs to be used for coordinates (so XYZIJKARQ characters) but not for other commands like spindle speed (S), cutting speed (F), iterations (L) calls (P) etc... it's a fuckign mess...
I'm using my custom syntax coloring to make the code easier to visualize and I've defined
Code: Select all
OperatorChars = XYZIJKLNPSRFQA
What I would like to do is have any operator chars where I have forgotten the bloody dot to get highlighted
So
Code: Select all
X451.
but
Code: Select all
X451
Is this feasible ?