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

24Health
Library Cargo

tree-sitter-toml

A tree-sitter grammar for TOML configuration files

17
MIT
Used by 3
29Health
Library Cargo

tree-sitter-kotlin-ng

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

8
MIT
Used by 3
49Health
Library npm

prism-themes

A community-curated set of 30+ CSS themes for the Prism.js syntax highlighter, from Dracula to One Dark.

1,519
MIT
Used by 2
59Health
Library npm

twoslash

Markup format that runs real TypeScript compiler checks over code samples to extract types, errors, and completions.

944
MIT
Used by 2
40Health
Library Go

go-tree-sitter

Go bindings for tree-sitter with prebuilt parsers for 40+ languages, for building fast syntax trees from source code.

571
MIT
Used by 2
75Health
Library npm

react-shiki

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

536
MIT
Used by 2
88Health
Library PyPI

tree-sitter-language-pack

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

478
MIT
Used by 2
73Health
Library Cargo

tree-sitter-sql

A general, permissive SQL grammar for tree-sitter incremental parsing

247
MIT
Used by 2
74Health
Library Cargo

tree-sitter-swift

A tree-sitter grammar for the Swift programming language

225
MIT
Used by 2
51Health
Library Cargo

tree-sitter-html

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

216
MIT
Used by 2
50Health
Library Cargo

tree-sitter-css

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

140
MIT
Used by 2
44Health
Library Cargo

tree-sitter-julia

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

129
MIT
Used by 2
40Health
Library Cargo

tree-sitter-lua

A tree-sitter grammar that turns Lua 5.x and LuaJIT source into fast, incremental, error-tolerant syntax trees.

105
MIT
Used by 2
28Health
Library npm

json-colorizer

A tiny TypeScript library that syntax-highlights and pretty-prints JSON for readable console output.

90
MIT
Used by 2
35Health
Library Cargo

tree-sitter-yaml

A tree-sitter grammar for YAML documents

58
MIT
Used by 2
22Health
Library npm

codemirror-lang-nix

A Lezer-based Nix language mode for CodeMirror 6, adding syntax highlighting, indentation, and folding for Nix expressions.

18
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
57Health
Library Cargo

tree-sitter-elixir

The official Elixir grammar for Tree-sitter, powering fast, incremental parsing for editors and tooling.

287
Apache 2.0
Used by 1
63Health
Library Cargo

tree-sitter-kotlin

A Tree-sitter grammar for Kotlin, validated against JetBrains' own PSI parser and shipped as native bindings for six languages.

192
MIT
Used by 1
43Health
Library Cargo

tree-sitter-solidity

A low-dependency Tree-sitter grammar for Solidity, designed for metaprogramming and tooling.

186
MIT
Used by 1
46Health
Library Cargo

tree-sitter-r

An incremental tree-sitter grammar for the R programming language

154
MIT
Used by 1
50Health
Library Cargo

tree-sitter-hcl

An incremental Tree-sitter grammar for HCL, the configuration language behind Terraform.

145
Apache 2.0
Used by 1
51Health
Library PyPI

tree-sitter-verilog

SystemVerilog and Verilog grammar for the tree-sitter incremental parser.

124
MIT
Used by 1
52Health
Library Cargo

tree-sitter-elm

A tree-sitter grammar for the Elm programming language

87
MIT
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