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