Packages

Syntax Highlighting Packages

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

84 packages

Packages in Syntax Highlighting

87Health
Library npm

Shiki

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

13,911
MIT
Used by 75
88Health
Library npm

highlight.js

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

25,014
BSD 3
Used by 72
62Health
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,672
MIT
Used by 57
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
55Health
Library PyPI

rich

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

57,740
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 46
22Health
Library npm

@lezer/highlight

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

41
MIT
Used by 45
82Health
Library npm

Prism

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

13,066
MIT
Used by 41
40Health
Library npm

lowlight

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

926
MIT
Used by 35
90Health
Library npm

Fumadocs Core

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

13,565
MIT
Used by 28
24Health
Library npm

@codemirror/lang-python

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

42
MIT
Used by 25
68Health
Library PyPI

Pygments

Generic syntax highlighter for Python supporting over 500 languages and formats

2,221
Other
Used by 18
40Health
Library npm

rehype-highlight

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

334
MIT
Used by 17
67Health
Library npm

Ace Builds

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

3,090
BSD 3
Used by 14
52Health
Library Cargo

tree-sitter-typescript

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

538
MIT
Used by 11
52Health
Library Cargo

tree-sitter-python

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

573
MIT
Used by 9
52Health
Library Cargo

tree-sitter-javascript

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

498
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
54Health
Library Cargo

tree-sitter-cpp

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

463
MIT
Used by 8
51Health
Library Cargo

tree-sitter-go

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

422
MIT
Used by 8
52Health
Library npm

diff2html

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

3,431
MIT
Used by 7
52Health
Library Cargo

tree-sitter-rust

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

534
MIT
Used by 7
55Health
Library Cargo

tree-sitter-c-sharp

C# grammar for tree-sitter, based on the Roslyn language grammar

323
MIT
Used by 7
22Health
Library npm

@codemirror/lang-cpp

C++ language support for the CodeMirror 6 code editor, with syntax highlighting, indentation, and code folding.

11
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