This is the best tool to edit g-code files.
A few advantages of using Kate to edit g-code files are : supports code folding and completion, has versions for LINUX, WINDOWS and MAC, ease of editing the syntaxing colors and snippets ease of use and learning curve
G-Code syntax highlighter and snippets for Kate were developped with LinuxCNC in mind but should work with any gcode version. Some snippets and highlight are specific to LinuxCNC.
Screenshots available at https://forum.linuxcnc.org/forum/40-subroutines-and-ngcgui/26578-linuxcnc-features-a-kind-of-ngcgui?start=300#70985
- Installation
-
Download gcode.xml and G-Code-snippets.xml in the folder of your choice
-
Copy gcode.xml in ~/.kde/share/apps/katepart/syntax (for windows use C:\Users%name%\AppData\Local\katepart5\syntax) Create sub-dir if needed
-
Copy G-Code-snippets.xml in ~/.kde/share/apps/ktexteditor_snippets/data (for windows use C:\Users%name%\AppData\Local\ktexteditor_snippets\data) Create sub-dir if needed
-
Configuration
-
Start Kate
-
Select Settings->Configure Kate...
-
Select Application->Plugins
-
Check : use Code snippets
-
Select Editor Component->Open/Save Select Modes & Filetypes Click New Edit fields : Name : G-Code Section : Other Highlighting : Other/G-Code Indentation Mode : Normal File extensions : *.ngc (or whatever as per your need) MIME type : text/ngc Priority : 0
-
Click Apply/OK
-
Restart Kate and open one of your files or the demos
Note : you may delete snippets that are not supported by your Kate version - sub-endsub and return