Fără Descriere

Michael Bolin 9d4ceab3d9 Use MonacoWebpackPlugin to disable default language tokenizers. 5 ani în urmă
grammars 0f56c779ab Initial commit. 5 ani în urmă
src 9d4ceab3d9 Use MonacoWebpackPlugin to disable default language tokenizers. 5 ani în urmă
.gitignore 0f56c779ab Initial commit. 5 ani în urmă
.prettierrc 0f56c779ab Initial commit. 5 ani în urmă
LICENSE 0f56c779ab Initial commit. 5 ani în urmă
README.md 0f56c779ab Initial commit. 5 ani în urmă
index.css 0f56c779ab Initial commit. 5 ani în urmă
index.html 0f56c779ab Initial commit. 5 ani în urmă
package.json 9d4ceab3d9 Use MonacoWebpackPlugin to disable default language tokenizers. 5 ani în urmă
tsconfig.json 0f56c779ab Initial commit. 5 ani în urmă
webpack.config.cjs 9d4ceab3d9 Use MonacoWebpackPlugin to disable default language tokenizers. 5 ani în urmă
yarn.lock 9d4ceab3d9 Use MonacoWebpackPlugin to disable default language tokenizers. 5 ani în urmă

README.md

monaco-tm

This attempts to get TextMate grammars working in standalne Monaco by leveraging vscode-oniguruma and vscode-textmate. For more context, see: https://github.com/microsoft/monaco-editor/issues/1915.

Run demo

Status

Currently, I am trying to use this to verify I can get the Hack grammar working in standalone Monaco. Unfortunately, it is not working yet.

To try other languages, play with options at the bottom of app.ts.

I also took a brief look at:

I believe that demo reimplements some of what vscode-textmate provides. I would prefer to have something as close to the VS Code implementation as possible.