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
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
56Health
Library Cargo

tree-sitter-typescript

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

532
MIT
Used by 12
56Health
Library Cargo

tree-sitter-python

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

568
MIT
Used by 10
56Health
Library Cargo

tree-sitter-javascript

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

494
MIT
Used by 9
56Health
Library Cargo

tree-sitter-rust

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

532
MIT
Used by 8
58Health
Library Cargo

tree-sitter-cpp

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

457
MIT
Used by 8
55Health
Library Cargo

tree-sitter-go

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

419
MIT
Used by 8
58Health
Library Cargo

tree-sitter-c-sharp

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

321
MIT
Used by 7
55Health
Library Cargo

tree-sitter-java

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

274
MIT
Used by 6
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
56Health
Library Cargo

tree-sitter-c

The official C grammar for the tree-sitter incremental parsing library

395
MIT
Used by 4
68Health
Library Cargo

tree-sitter-php

Incremental PHP grammar for the tree-sitter parsing library

235
MIT
Used by 4
56Health
Library Cargo

tree-sitter-ruby

The official Ruby grammar for the tree-sitter incremental parsing library

229
MIT
Used by 4
58Health
Library Cargo

tree-sitter-json

Fast, incremental JSON grammar for the Tree-sitter parsing framework.

204
MIT
Used by 4
81Health
Library Cargo

tree-sitter-scala

A tree-sitter grammar for parsing Scala source code into a concrete syntax tree.

198
MIT
Used by 4
74Health
Library PyPI

tree-sitter (Python)

Python bindings to the Tree-sitter incremental parsing library for building concrete syntax trees from source code.

1,506
MIT
Used by 3
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
55Health
Library npm

node-tree-sitter

Node.js bindings to the tree-sitter incremental parsing library for building and querying syntax trees.

878
MIT
Used by 3
60Health
Library Cargo

tree-sitter-md

Fast, incremental Markdown grammar for the Tree-sitter parsing framework.

626
MIT
Used by 3

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