Here's how it's look like using "Oblivion" color scheme:
How to get your Gedit highlight the Gcode
and make your own Gcode viewer
- Download this file:
- Save it into "/usr/share/gtksourceview-2.0/language-specs/". Restart Gedit if it needed.
- If you want to st up color scheme same to my do the following Edit->Preferences->Fonts & Colors and select "Oblivion".
My version differentiates different G and M codes for example coolant M codes M7, M8 and M9 are drawn in blue, start / stop M codes are on red background. Also some spindle and feed parameters which can appear inside the line with G code are drawn in green so they become more visible.
Hope there wont be any bugs/mistakes but if you've found one do not hesitate to report it .