gcode-syntax icon indicating copy to clipboard operation
gcode-syntax copied to clipboard

Highlighting strings

Open ghost opened this issue 6 years ago • 1 comments

Hi thanks for this, it worked straight away for me. My suggestions:

change line 2 to: <UserLang name="G Code" ext="nc g gcode TAP" udlVersion="2.1"> so that files with the ".gcode" extension get the syntax highlighting too. I'll see if I can make a pull request for this.

Also, is there a way to colour comments and strings with a single colour? Anything with a proceeding semicolon should be highlighted perhaps grey.

Also, after commands like M117 the argument is a string, so these strings should be formatted with another single colour, perhaps green.

ghost avatar Nov 25 '18 07:11 ghost

I added the gcode extension, and support for semicolon comments, but I could not push or create a pull request as I do not have permission.

ghost avatar Nov 25 '18 10:11 ghost