| 1 | # textmate-lib |
| 2 | |
| 3 | This is an attempt to create a reusable Node.js module for working |
| 4 | with a corpus of TextMate grammars and leveraging them to tokenize |
| 5 | source code so it can be syntax highlighted in the browser in a way |
| 6 | that is consistent with VS Code. |
| 7 | |
| 8 | As 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 | |
| 16 | The specifics of how you satisfy these requirements are likely tied to how |
| 17 | you load static resources in your web application. |
| 18 | |