Syntax Highlighting Packages
Source-code syntax-highlighting libraries for rendering readable, colorized code blocks in docs, editors, and blogs (Shiki, Prism, highlight.js).
Packages in Syntax Highlighting
Kind
Sort:Used by Most Apps
@codemirror/language
Language support infrastructure for the CodeMirror 6 editor: parsing, indentation, code folding, bracket matching, and syntax highlighting.
lang-javascript
JavaScript, TypeScript, and JSX language support for the CodeMirror 6 code editor.
lowlight
Virtual syntax highlighting for virtual DOMs and non-HTML things, powered by highlight.js
@codemirror/lang-sql
SQL language support for the CodeMirror editor: parsing, syntax highlighting, and schema-aware autocomplete across multiple SQL dialects.
@codemirror/lang-python
Python language support for the CodeMirror code editor, with highlighting, indentation, and autocompletion.
tree-sitter-typescript
TypeScript and TSX grammars for the tree-sitter incremental parsing framework.
tree-sitter-javascript
JavaScript and JSX grammar for the tree-sitter incremental parsing library
@codemirror/lang-rust
Rust language support for the CodeMirror 6 code editor, powered by a Lezer grammar.
diff2html
Generate pretty, GitHub-style HTML diffs from git diff or unified diff output
tree-sitter-c-sharp
C# grammar for tree-sitter, based on the Roslyn language grammar
@codemirror/lang-java
Java language support for the CodeMirror 6 editor, powered by a Lezer grammar.
@codemirror/lang-cpp
C++ language support for the CodeMirror 6 code editor, with syntax highlighting, indentation, and code folding.
refractor
Lightweight virtual syntax highlighter that wraps Prism to output hast syntax trees instead of HTML strings.
tree-sitter-c
The official C grammar for the tree-sitter incremental parsing library
tree-sitter-php
Incremental PHP grammar for the tree-sitter parsing library
tree-sitter-ruby
The official Ruby grammar for the tree-sitter incremental parsing library
tree-sitter-json
Fast, incremental JSON grammar for the Tree-sitter parsing framework.
codemirror-lang-elixir
Elixir language support for the CodeMirror 6 code editor, with syntax highlighting, smart indentation, and code folding.
tree-sitter-md
Fast, incremental Markdown grammar for the Tree-sitter parsing framework.
tree-sitter-kotlin-ng
Fast, incremental Kotlin grammar for the Tree-sitter parsing framework.
react-shiki
A performant syntax-highlighting component and hook for React, powered by Shiki's TextMate grammars and themes.
tree-sitter-language-pack
Precompiled tree-sitter parsers and queries for 306+ languages in one install
tree-sitter-html
Fast, incremental HTML grammar for the Tree-sitter parsing framework.
tree-sitter-css
Fast, incremental CSS grammar for the Tree-sitter parsing framework.