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.
@codemirror/lang-rust
Rust language support for the CodeMirror 6 code editor, powered by a Lezer 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.
codemirror-lang-elixir
Elixir language support for the CodeMirror 6 code editor, with syntax highlighting, smart indentation, and code folding.
react-shiki
A performant syntax-highlighting component and hook for React, powered by Shiki's TextMate grammars and themes.