Shiki is a beautiful Syntax Highlighter. Demo.
## Usage ```sh npm i shiki ``` ```js const shiki = require('shiki') shiki .getHighlighter({ theme: 'nord' }) .then(highlighter => { console.log(highlighter.codeToHtml(`console.log('shiki');`, { lang: 'js' })) }) //
//
//
```
```html
```
Clone [shikijs/shiki-starter](https://github.com/shikijs/shiki-starter) to play with Shiki, or try it out on [Repl.it](https://repl.it/@octref/shiki-starter).
Learn more from the GitHub repo: [shikijs/shiki](https://github.com/shikijs/shiki).
## Credits
- Shiki uses [vscode-oniguruma](https://github.com/microsoft/vscode-oniguruma)
- A lot of code is based on [vscode-textmate](https://github.com/Microsoft/vscode-textmate)
## Sponsorship
If you find Shiki useful, please consider sponsoring my Open Source development. Thank you 🙏
https://github.com/sponsors/octref
## License
MIT © [Pine Wu](https://github.com/octref)