|
5 年之前 | |
---|---|---|
grammars | 5 年之前 | |
src | 5 年之前 | |
.gitignore | 5 年之前 | |
.prettierrc | 5 年之前 | |
LICENSE | 5 年之前 | |
README.md | 5 年之前 | |
index.css | 5 年之前 | |
index.html | 5 年之前 | |
package.json | 5 年之前 | |
tsconfig.json | 5 年之前 | |
webpack.config.cjs | 5 年之前 | |
yarn.lock | 5 年之前 |
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.
yarn install
yarn demo
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.