Skip to content

TypeScript library that holds syntax highlighting files for the Monaco editor

License

Notifications You must be signed in to change notification settings

Duet3D/MonacoTokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MonacoTokens

TypeScript library that holds syntax highlighting files for the Monaco editor

Currently exported Monaco languages:

  • gcodeFDMLanguage (RRF G-code to be used in FFF mode)
  • gcodeCNCLanguage (RRF G-code to be used in CNC and Laser mode)

After importing the languages, you need to register them as following:

monaco.languages.register({ id: "gcode-fdm" });
monaco.languages.setMonarchTokensProvider("gcode-fdm", gcodeFDMLanguage);

monaco.languages.register({ id: "gcode-cnc" });
monaco.languages.setMonarchTokensProvider("gcode-cnc", gcodeCNCLanguage);

Bug reports

Please use the forum for support requests or the DuetWebControl GitHub repository for feature requests and bug reports.

About

TypeScript library that holds syntax highlighting files for the Monaco editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published