Search code examples
monaco-editorg-code

is there G-Code syntax for monaco editor?


I'm trying to create a code editor via monaco loader which is going to do all of the appropriate formatting and highlighting for .g-code files. I understand that for this to work I need g-code as the language but g-code isn't on the list of options. Does anyone know where I can get g-code rules and how to implement them into my editor?

If anyone has already made something like that and is willing to share it then I would much appreciate it.


Solution

  • Does anyone know where I can get gcode rules and how to implement them into my editor?

    Read the code in the vscode-gcode-syntax repo very carefully as it is a great reference you can use to implement your own monarch language syntax.

    Useful Resources to get started: