I want to use Vim and EMACS for CNC, G codes & M codes.
Is there any syntax or modes for Vim or EMACS for working with this type of code?
I want to use Vim and EMACS for CNC, G codes & M codes.
Is there any syntax or modes for Vim or EMACS for working with this type of code?
Some quick searching led me to this syntax highlighting file for vim and this one for emacs. For vim the
ngc.vim
file needs to put in thesyntax
directory of your runtimepath. For the emacs one it seems like you just need to copy that code into your.emacs
file.