暂无描述

Michael Bolin bcea24a9de Improve quality of Hack example. 5 年之前
grammars 0f56c779ab Initial commit. 5 年之前
src bcea24a9de Improve quality of Hack example. 5 年之前
.gitignore 0f56c779ab Initial commit. 5 年之前
.prettierrc 0f56c779ab Initial commit. 5 年之前
LICENSE 0f56c779ab Initial commit. 5 年之前
README.md 0f56c779ab Initial commit. 5 年之前
index.css 0f56c779ab Initial commit. 5 年之前
index.html 0f56c779ab Initial commit. 5 年之前
package.json 8ea1ed8d56 Got things working with monaco-editor-textmate. 5 年之前
tsconfig.json 0f56c779ab Initial commit. 5 年之前
webpack.config.cjs 9d4ceab3d9 Use MonacoWebpackPlugin to disable default language tokenizers. 5 年之前
yarn.lock 8ea1ed8d56 Got things working with monaco-editor-textmate. 5 年之前

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.