GitHub - getzola/giallo: Syntax highlighter, same output as VSCode
github.com·1d·
Discuss: Hacker News
🤖AI Codegen
Preview
Report Post

Giallo

A Rust syntax highlighting library using TextMate grammars and themes, producing the same output as VSCode.

This uses the curated grammars and themes from https://github.com/shikijs/textmate-grammars-themes for an optional built-in starting kit and testing, but you can start from an empty canvas if you want.

Installation

[dependencies]
giallo = { version = "0.1.0", features = ["dump"] }

The dump feature is required to use Registry::builtin() or create/load your own dump. The dump is not tracked in git since it might change frequently, and is generated in the CI release script.

The dump is currently 1.72MB compressed MessagePack file.

Giallo currently uses a fork of [rust-onig](https://github.com/…

Similar Posts

Loading similar posts...