715 B18 lines
Blame
1# textmate-lib
2
3This is an attempt to create a reusable Node.js module for working
4with a corpus of TextMate grammars and leveraging them to tokenize
5source code so it can be syntax highlighted in the browser in a way
6that is consistent with VS Code.
7
8As a user of this library, you have to:
9
10- Successfully call `loadWASM()` from `vscode-oniguruma`.
11- Provide your own `IRawTheme` (as defined in `vscode-textmate`).
12- Provide your own map of scope name to `Grammar` where `Grammar` is an
13 interface that determines how to fetch TextMate grammar data (in either
14 JSON or plist format).
15
16The specifics of how you satisfy these requirements are likely tied to how
17you load static resources in your web application.
18