Highlight Gcode in Gedit
Добавлено: 18 авг 2010, 14:09
Despite it's simplicity Gedit (it's default "Notepad" for Gnome for Linux) has a lot of useful functions. One of them is syntax highlighting for different programing languages, scripts, htlm, xml, etc. By default Gedit supports about 100 different languages but unfortunately Gcode not in that list. So I've decided to write Gcode syntax highlighting for Gedit.
Here's how it's look like using "Oblivion" color scheme:How to get your Gedit highlight the Gcode
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 .
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 .