trishume/syntect
Rust library for syntax highlighting using Sublime Text syntax definitions. observed · 2026-08-28
Health v2 · maintenance only
62/100
- Activity 79
- Release rhythm 17
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3763
- days_rel: 340
- days_push: 127
- n_releases_24m: 1
Adoption not part of the score
2409 stars · 175 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
syntect is a Rust library for high-quality syntax highlighting that uses Sublime Text syntax definitions (grammars). It parses source code into scoped annotations and renders them as colored HTML or ANSI terminal output, with APIs suitable for building text editors.
Use cases
- add syntax highlighting to a Rust application
- highlight code blocks to HTML for a static site or blog
- render colored code in a terminal with ANSI escapes
- build a text editor in Rust with incremental re-highlighting
- cache parse states for code intelligence features
- highlight many languages without writing custom grammars
When to choose
- you need fast, high-quality highlighting for many languages in Rust
- you want Sublime Text / TextMate grammar compatibility including edge cases
- you're building a Rust text editor and need access to parse internals
- you want bundled syntax definitions with no external files to manage
When to avoid
- your project is not in Rust
- you need Tree-sitter-based highlighting or error-tolerant parsing
- you need a standalone CLI highlighter rather than a library
- you need actively developed new features, since the project is mostly complete and in maintenance
Facets
library · maturity maintenance
parser developer-tools developer-tools text-editors programming-languages rust cross-platform syntax-highlighting sublime-text-grammars textmate code-intelligence html-output ansi-terminal
10 sources
- readme: https://github.com/trishume/syntect · fetched 2026-08-28 · 9e16a1fb775b
- homepage: https://docs.rs/syntect · fetched 2026-08-29 · bbf40b6387b6
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/ · fetched 2026-08-29 · 38444eb0fe60
- site_page: https://docs.rs/crate/syntect/latest · fetched 2026-08-29 · bc446488ee16
- site_page: https://docs.rs/crate/syntect/latest/features · fetched 2026-08-29 · 9b3fffd7171a
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trishume/syntect | main | 62 |
For agents
markdown · JSON · MCP: product_card(name="trishume/syntect")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem