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

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-javascript

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

494
MIT
Used by 9
53Health
Library npm

diff2html

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

3,415
MIT
Used by 7
58Health
Library Cargo

tree-sitter-c-sharp

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

321
MIT
Used by 7
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
60Health
Library Cargo

tree-sitter-md

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

626
MIT
Used by 3
32Health
Library Cargo

tree-sitter-kotlin-ng

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

8
MIT
Used by 3
86Health
Library PyPI

tree-sitter-language-pack

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

466
MIT
Used by 2
54Health
Library Cargo

tree-sitter-html

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

215
MIT
Used by 2
53Health
Library Cargo

tree-sitter-css

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

139
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
41Health
Library Cargo

tree-sitter-lua

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

104
MIT
Used by 2
51Health
Library Cargo

tree-sitter-elixir

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

285
Apache 2.0
Used by 1
61Health
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.

190
MIT
Used by 1
44Health
Library Cargo

tree-sitter-solidity

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

186
MIT
Used by 1
53Health
Library Cargo

tree-sitter-hcl

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

146
Apache 2.0
Used by 1
54Health
Library PyPI

tree-sitter-verilog

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

123
MIT
Used by 1
43Health
Library Cargo

tree-sitter-fortran

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

53
MIT
Used by 1
39Health
Library PyPI

tree-sitter-zig

A fast, incremental Zig grammar for tree-sitter that powers syntax highlighting, code folding, and structural code queries in editors and dev tools.

42
MIT
Used by 1
30Health
Library Cargo

tree-sitter-svelte-ng

An incremental Tree-sitter grammar for Svelte component syntax.

23
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