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

26Health
Library npm

@codemirror/language

Language support infrastructure for the CodeMirror 6 editor: parsing, indentation, code folding, bracket matching, and syntax highlighting.

32
MIT
Used by 67
33Health
Library npm

lang-javascript

JavaScript, TypeScript, and JSX language support for the CodeMirror 6 code editor.

78
MIT
Used by 47
40Health
Library npm

lowlight

Virtual syntax highlighting for virtual DOMs and non-HTML things, powered by highlight.js

926
MIT
Used by 37
37Health
Library npm

@codemirror/lang-sql

SQL language support for the CodeMirror editor: parsing, syntax highlighting, and schema-aware autocomplete across multiple SQL dialects.

101
MIT
Used by 27
25Health
Library npm

@codemirror/lang-python

Python language support for the CodeMirror code editor, with highlighting, indentation, and autocompletion.

42
MIT
Used by 26
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
23Health
Library npm

@codemirror/lang-rust

Rust language support for the CodeMirror 6 code editor, powered by a Lezer grammar.

29
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
23Health
Library npm

@codemirror/lang-java

Java language support for the CodeMirror 6 editor, powered by a Lezer grammar.

16
MIT
Used by 7
23Health
Library npm

@codemirror/lang-cpp

C++ language support for the CodeMirror 6 code editor, with syntax highlighting, indentation, and code folding.

11
MIT
Used by 7
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
19Health
Library npm

codemirror-lang-elixir

Elixir language support for the CodeMirror 6 code editor, with syntax highlighting, smart indentation, and code folding.

10
Apache 2.0
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
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
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

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