#tui #cursive #user-interface #syntect

cursive-syntect

Highlight text with syntect as cursive styled text

2 unstable releases

0.2.0 Aug 2, 2024
0.1.0 Sep 9, 2022

#706 in GUI

31 downloads per month
Used in omega

MIT license

1MB
19K SLoC

cursive-syntect

crates.io MIT licensed Gitter chat

This is a thin adapter to style a string for cursive using a highlighter from syntect.

See the example for usage.

syntect example

[dependencies]
cursive-syntect = "0.1"

lib.rs:

Parse text using a syntect highlighter.

The [parse()] function can be used to generate a StyledString using a highlighter and a syntax set.

Dependencies

~8–16MB
~210K SLoC