syntect
Rust library that highlights source code using Sublime Text syntax definitions.
syntect is a Rust library that highlights source code using Sublime Text syntax definitions. A Rust program adds it as a crate from crates.io, and its API documentation is on docs.rs.
The built-in output is colored HTML pre tags or 24-bit ANSI terminal escape sequences. Highlighting can use one of two regex engines, the default oniguruma or a pure Rust fancy-regex mode.
Worth knowing
The README says the maintainer considers the project mostly complete, still maintains it and reviews pull requests, and that it is not under heavy development.
Identity
- Status
- Active
- Maintainer
- Tristan Hume3
- Maintained by
- Individual
- First release
- 20164
Rendering and deploy
- Install with
- cargo2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/trishume/syntect - 2026-11-16: links, Categories, Runtime, Install with
github.com/trishume/syntect/blob/master/Readme.md - 2026-11-16: Maintainer, License, License model
github.com/trishume/syntect/blob/master/LICENSE.txt - 2026-11-16: First release
crates.io/api/v1/crates/syntect/versions - 2026-11-16: Current major version, Last release
api.github.com/repos/trishume/syntect/releases - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/crates.io/packages/syntect - 2026-11-16: Contributors
api.github.com/repos/trishume/syntect/contributors?per_page=1