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

85Health
Library npm

Shiki

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

13,881
MIT
Used by 75
83Health
Library npm

highlight.js

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

25,008
BSD 3
Used by 73
25Health
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
64Health
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,673
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,999
MIT
Used by 55
56Health
Library PyPI

rich

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

57,620
MIT
Used by 47
32Health
Library npm

lang-javascript

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

78
MIT
Used by 47
22Health
Library npm

@lezer/highlight

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

41
MIT
Used by 47
83Health
Library npm

Prism

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

13,051
MIT
Used by 42
40Health
Library npm

lowlight

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

927
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,455
MIT
Used by 28
36Health
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
24Health
Library npm

@codemirror/lang-python

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

42
MIT
Used by 26
73Health
Library PyPI

Pygments

Generic syntax highlighter for Python supporting over 500 languages and formats

2,218
Other
Used by 18
40Health
Library npm

rehype-highlight

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

333
MIT
Used by 17
69Health
Library npm

Ace Builds

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

3,093
BSD 3
Used by 14
53Health
Library Cargo

tree-sitter-typescript

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

537
MIT
Used by 12
53Health
Library Cargo

tree-sitter-python

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

571
MIT
Used by 10
53Health
Library Cargo

tree-sitter-javascript

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

495
MIT
Used by 9
22Health
Library npm

@codemirror/lang-rust

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

29
MIT
Used by 9
53Health
Library Cargo

tree-sitter-rust

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

532
MIT
Used by 8
55Health
Library Cargo

tree-sitter-cpp

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

463
MIT
Used by 8
52Health
Library Cargo

tree-sitter-go

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

422
MIT
Used by 8
53Health
Library npm

diff2html

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

3,426
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