# syntect

Rust library that highlights source code using Sublime Text syntax definitions.


Source: https://findsoftware.frbit.cloud/syntect/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/trishume/syntect
- docs: https://docs.rs/syntect

### Identity

- status: active
- maintainer: Tristan Hume
- maintainerType: individual
- parent: unknown
- firstRelease: 2016
- hqCountry: unknown

### Kind

- category: library
- hosting: binary
- language: rust
- runtime: binary
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: cargo

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 5
- latestReleaseDate: 2025-09-27

### Adoption

- githubStargazers: 2464
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 88
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 920
- dependentPackages: 225

### Sources

- urls: https://api.github.com/repos/trishume/syntect (read 2026-11-16)
- urls: https://github.com/trishume/syntect/blob/master/Readme.md (read 2026-11-16)
- maintainer: https://github.com/trishume/syntect/blob/master/LICENSE.txt (read 2026-11-16)
- firstRelease: https://crates.io/api/v1/crates/syntect/versions (read 2026-11-16)
- category: https://github.com/trishume/syntect/blob/master/Readme.md (read 2026-11-16)
- language: https://api.github.com/repos/trishume/syntect (read 2026-11-16)
- runtime: https://github.com/trishume/syntect/blob/master/Readme.md (read 2026-11-16)
- installMethod: https://github.com/trishume/syntect/blob/master/Readme.md (read 2026-11-16)
- license: https://github.com/trishume/syntect/blob/master/LICENSE.txt (read 2026-11-16)
- licenseModel: https://github.com/trishume/syntect/blob/master/LICENSE.txt (read 2026-11-16)
- currentMajor: https://api.github.com/repos/trishume/syntect/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/trishume/syntect/releases (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/syntect (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/syntect (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/trishume/syntect (read 2026-11-16)
- contributors: https://api.github.com/repos/trishume/syntect/contributors?per_page=1 (read 2026-11-16)

## Notes

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](https://crates.io/crates/syntect), and its [API documentation](https://docs.rs/syntect) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
