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

Showing 15 of 87 packages
89Health
Librarynpm

highlight.js

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

24,994
BSD 3
Used by 70
80Health
Librarynpm

Shiki

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

13,779
MIT
Used by 68
26Health
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,993
MIT
Used by 55
33Health
Librarynpm

lang-javascript

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

78
MIT
Used by 46
62Health
LibraryPyPI

rich

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

57,333
MIT
Used by 43
23Health
Librarynpm

@lezer/highlight

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

41
MIT
Used by 43
68Health
Librarynpm

Prism

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

13,039
MIT
Used by 41
40Health
Librarynpm

lowlight

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

924
MIT
Used by 35
37Health
Librarynpm

@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
90Health
Librarynpm

Fumadocs Core

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

13,080
MIT
Used by 25
25Health
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.

331
MIT
Used by 16
53Health
Librarynpm

Ace Builds

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

3,092
BSD 3
Used by 14

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