Packages

Syntax Highlighting Packages

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

53 packages

Packages in Syntax Highlighting

Showing 53 packages
89Health
Librarynpm

highlight.js

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

24,981
BSD 3
Used by 70
85Health
Librarynpm

Shiki

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

13,716
MIT
Used by 66
27Health
Librarynpm

@codemirror/language

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

32
MIT
Used by 64
50Health
Librarynpm

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,675
MIT
Used by 56
49Health
Librarynpm

prism-react-renderer

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

1,990
MIT
Used by 55
34Health
Librarynpm

lang-javascript

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

78
MIT
Used by 46
24Health
Librarynpm

@lezer/highlight

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

40
MIT
Used by 43
71Health
Librarynpm

Prism

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

13,036
MIT
Used by 41
40Health
Librarynpm

lowlight

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

920
MIT
Used by 35
90Health
Librarynpm

Fumadocs Core

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

12,922
MIT
Used by 25
26Health
Librarynpm

@codemirror/lang-python

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

42
MIT
Used by 25
40Health
Librarynpm

rehype-highlight

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

329
MIT
Used by 16
54Health
Librarynpm

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
90Health
LibraryPyPI

Pygments

Generic syntax highlighter for Python supporting over 500 languages and formats

2,201
Other
Used by 10
55Health
Librarynpm

diff2html

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

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

Search