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

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
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
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
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
53Health
Library npm

diff2html

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

3,415
MIT
Used by 7
92Health
Library Go

Chroma

A general-purpose syntax highlighting library for Go, supporting 200+ languages and multiple output formats out of the box.

5,044
MIT
Used by 5
50Health
Library Cargo

syntect

High-quality Rust syntax highlighting using Sublime Text's grammar and theme formats

2,430
MIT
Used by 5
41Health
Library npm

refractor

Lightweight virtual syntax highlighter that wraps Prism to output hast syntax trees instead of HTML strings.

870
MIT
Used by 5
84Health
Library npm

Sugar High

Lightweight, zero-dependency syntax highlighter that turns code into HTML without a DOM, in browsers and JS runtimes alike.

1,370
MIT
Used by 3
71Health
Library npm

react-shiki

A performant syntax-highlighting component and hook for React, powered by Shiki's TextMate grammars and themes.

538
MIT
Used by 2
86Health
Library PyPI

tree-sitter-language-pack

Precompiled tree-sitter parsers and queries for 306+ languages in one install

466
MIT
Used by 2
22Health
Library npm

highlightjs-curl

A highlight.js language grammar module that adds cURL command syntax highlighting to any site or app.

8
Apache 2.0
Used by 2
31Health
Library npm

react-refractor

A thin React wrapper around refractor/Prism that renders syntax-highlighted code as virtual DOM instead of touching the DOM directly.

76
MIT
Used by 1
9Health
Library Cargo

tree-sitter-astro-next

An Astro grammar for tree-sitter, compatible with tree-sitter 0.25+

0
Apache 2.0
Used by 1

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