An example program with Robot Framework syntax highlighting using Monaco Editor and TextMate grammar file.
Includes two added grammars in the grammars folder: robot.tmLanguage from Tomi Turtiainen's language server and robotframework.tmLanguage.json from the official Robocorp language server. Using the latter by default since it seems to be more extensive.
The robot.json file in configurations folder is also taken from the Robocorp language server. I had to change it a little bit to get it to work.
Otherwise I just followed the instructions that are included in app.ts.
The original README is below 👇
This gets TextMate grammars working in standalone Monaco by leveraging
vscode-oniguruma and vscode-textmate. For more context, see:
microsoft/monaco-editor#1915.
yarn installyarn demo- open http://localhost:8084/
Currently, only the Python grammar and VS Code Dark+ themes are included in the demo.