Shiki is a powerful syntax highlighter that uses TextMate grammars and themes—the same technology used by Visual Studio Code—to produce accurate highlighting for a wide range of programming languages.
This is free and open source software.
Key Features
- Provides accurate syntax highlighting using TextMate grammars and themes.
- Supports a broad range of programming languages and Visual Studio Code themes.
- Lazy-loads languages, themes and WebAssembly components on demand.
- Runs in modern JavaScript environments without relying on Node.js or filesystem APIs.
- Offers fine-grained bundles for including only the required languages and themes.
- Supports separate light and dark themes.
- Provides APIs for transformers, decorations and HAST output.
- Integrates with TypeScript Twoslash, Markdown-it, Rehype and Monaco Editor.
- Offers both JavaScript and Oniguruma-based regular-expression engines.
Website: github.com/shikijs/shiki
Support:
Developer: Pine Wu and Anthony Fu
License: MIT License
Shiki is written in TypeScript. Learn TypeScript with our recommended free books and free tutorials.
Related Software
| Syntax Highlighters | |
|---|---|
| Prism | Lightweight, extensible syntax highlighter, with modern web standards in mind |
| Highlight.js | JavaScript syntax highlighter with language auto-detection |
| Shiki | Themeable code rendering powered by TextMate grammars |
| Chroma | General purpose syntax highlighter |
| Rouge | Pure Ruby syntax highlighter |
| Pygments | Generic syntax highlighter |
| starry-night | GitHub-style code colouring for JavaScript projects |
| Highlight | Transforms source code into polished, readable output |
| Re-Highlight | Powerful syntax highlighter |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.