1

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.

4

1 回答 1

1

有谁知道我在哪里可以获得 gcode 规则以及如何将它们实施到我的编辑器中?

仔细阅读vscode-gcode-syntax repo中的代码,因为它是一个很好的参考,您可以使用它来实现您自己的 monarch 语言语法。

有用的入门资源:

于 2020-07-20T18:28:11.520 回答