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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help