Syntax Highlighting Packages
Source-code syntax-highlighting libraries for rendering readable, colorized code blocks in docs, editors, and blogs (Shiki, Prism, highlight.js).
Packages in Syntax Highlighting
Kind
Sort:Used by Most Apps
tree-sitter-toml
A tree-sitter grammar for TOML configuration files
tree-sitter-kotlin-ng
Fast, incremental Kotlin grammar for the Tree-sitter parsing framework.
prism-themes
A community-curated set of 30+ CSS themes for the Prism.js syntax highlighter, from Dracula to One Dark.
twoslash
Markup format that runs real TypeScript compiler checks over code samples to extract types, errors, and completions.
go-tree-sitter
Go bindings for tree-sitter with prebuilt parsers for 40+ languages, for building fast syntax trees from source code.
react-shiki
A performant syntax-highlighting component and hook for React, powered by Shiki's TextMate grammars and themes.
tree-sitter-language-pack
Precompiled tree-sitter parsers and queries for 306+ languages in one install
tree-sitter-sql
A general, permissive SQL grammar for tree-sitter incremental parsing
tree-sitter-swift
A tree-sitter grammar for the Swift programming language
tree-sitter-html
Fast, incremental HTML grammar for the Tree-sitter parsing framework.
tree-sitter-css
Fast, incremental CSS grammar for the Tree-sitter parsing framework.
tree-sitter-julia
Fast, incremental Julia grammar for the Tree-sitter parsing framework.
tree-sitter-lua
A tree-sitter grammar that turns Lua 5.x and LuaJIT source into fast, incremental, error-tolerant syntax trees.
json-colorizer
A tiny TypeScript library that syntax-highlights and pretty-prints JSON for readable console output.
tree-sitter-yaml
A tree-sitter grammar for YAML documents
codemirror-lang-nix
A Lezer-based Nix language mode for CodeMirror 6, adding syntax highlighting, indentation, and folding for Nix expressions.
highlightjs-curl
A highlight.js language grammar module that adds cURL command syntax highlighting to any site or app.
tree-sitter-elixir
The official Elixir grammar for Tree-sitter, powering fast, incremental parsing for editors and tooling.
tree-sitter-kotlin
A Tree-sitter grammar for Kotlin, validated against JetBrains' own PSI parser and shipped as native bindings for six languages.
tree-sitter-solidity
A low-dependency Tree-sitter grammar for Solidity, designed for metaprogramming and tooling.
tree-sitter-r
An incremental tree-sitter grammar for the R programming language
tree-sitter-hcl
An incremental Tree-sitter grammar for HCL, the configuration language behind Terraform.
tree-sitter-verilog
SystemVerilog and Verilog grammar for the tree-sitter incremental parser.
tree-sitter-elm
A tree-sitter grammar for the Elm programming language