I added the editor with save features and homes/dehomes as needed (last part was more challenging than would appear it to be on the surface). I incorporated ace.js code editor that supports syntax highlighting. Per their website
Creating a new syntax highlighter for Ace is extremely simple. You’ll need to define two pieces of code: a new mode, and a new set of highlighting rules.
I found a already built gcode mode for it, but apparently its not the same gcode we are talking about.
Anyway, I am clueless as to how to make it work regardless of what the website says, it uses one of my nemeses, regex, and therefore I am at a lost.
It’s currently just in the holey calibration branch, so stay tuned.