Packages

Syntax Highlighting Packages

Source-code syntax-highlighting libraries for rendering readable, colorized code blocks in docs, editors, and blogs (Shiki, Prism, highlight.js).

87 packages

Packages in Syntax Highlighting

83Health
Library npm

Shiki

A syntax highlighter that renders code with the exact TextMate grammars and themes VS Code uses.

13,832
MIT
Used by 75
86Health
Library npm

highlight.js

Zero-dependency JavaScript syntax highlighter with automatic language detection for over 190 languages.

24,999
BSD 3
Used by 73
26Health
Library npm

@codemirror/language

Language support infrastructure for the CodeMirror 6 editor: parsing, indentation, code folding, bracket matching, and syntax highlighting.

32
MIT
Used by 67
50Health
Library npm

React Syntax Highlighter

A React component for syntax-highlighting code blocks using highlight.js or Prism ASTs, with JavaScript-based styles and no external stylesheet required.

4,674
MIT
Used by 59
49Health
Library npm

prism-react-renderer

A lightweight, themeable Prism syntax highlighter for React and React Native, built on a render-props API.

1,995
MIT
Used by 55
57Health
Library PyPI

rich

A Python library for rendering rich text, tables, progress bars, and syntax-highlighted code in the terminal.

57,443
MIT
Used by 47
33Health
Library npm

lang-javascript

JavaScript, TypeScript, and JSX language support for the CodeMirror 6 code editor.

78
MIT
Used by 47
23Health
Library npm

@lezer/highlight

Syntax highlighting framework that maps Lezer parse trees to styleable highlighting tags

41
MIT
Used by 47
78Health
Library npm

Prism

Lightweight, extensible syntax highlighting for the web and Node.js, with support for 300+ languages.

13,043
MIT
Used by 42
40Health
Library npm

lowlight

Virtual syntax highlighting for virtual DOMs and non-HTML things, powered by highlight.js

926
MIT
Used by 37
90Health
Library npm

Fumadocs Core

The headless React library for building documentation websites, with source loading, page trees, MDX processing, search, and i18n.

13,237
MIT
Used by 28
37Health
Library npm

@codemirror/lang-sql

SQL language support for the CodeMirror editor: parsing, syntax highlighting, and schema-aware autocomplete across multiple SQL dialects.

101
MIT
Used by 27
25Health
Library npm

@codemirror/lang-python

Python language support for the CodeMirror code editor, with highlighting, indentation, and autocompletion.

42
MIT
Used by 26
91Health
Library PyPI

Pygments

Generic syntax highlighter for Python supporting over 500 languages and formats

2,211
Other
Used by 18
40Health
Library npm

rehype-highlight

Rehype plugin that syntax-highlights code blocks at build time using lowlight and highlight.js.

332
MIT
Used by 17
52Health
Library npm

Ace Builds

Prebuilt Ace code editor bundles for embedding a fast, extensible editor with 100+ language modes in any web app

3,094
BSD 3
Used by 14
56Health
Library Cargo

tree-sitter-typescript

TypeScript and TSX grammars for the tree-sitter incremental parsing framework.

532
MIT
Used by 12
56Health
Library Cargo

tree-sitter-python

A fast, incremental Python grammar for the tree-sitter parsing library

568
MIT
Used by 10
56Health
Library Cargo

tree-sitter-javascript

JavaScript and JSX grammar for the tree-sitter incremental parsing library

494
MIT
Used by 9
23Health
Library npm

@codemirror/lang-rust

Rust language support for the CodeMirror 6 code editor, powered by a Lezer grammar.

29
MIT
Used by 9
56Health
Library Cargo

tree-sitter-rust

A fast, incremental Rust grammar for the tree-sitter parsing library

532
MIT
Used by 8
58Health
Library Cargo

tree-sitter-cpp

A fast, incremental C++ grammar for the tree-sitter parsing library

457
MIT
Used by 8
55Health
Library Cargo

tree-sitter-go

A fast, incremental Go grammar for the tree-sitter parsing library

419
MIT
Used by 8
53Health
Library npm

diff2html

Generate pretty, GitHub-style HTML diffs from git diff or unified diff output

3,415
MIT
Used by 7

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers