#tui #cursive #syntect #user-interface #highlighter #adapter #thin

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

#1005 in GUI

Download history 7/week @ 2024-12-04 17/week @ 2024-12-11 3/week @ 2024-12-18 8/week @ 2025-01-15 4/week @ 2025-01-22 8/week @ 2025-01-29 23/week @ 2025-02-05 9/week @ 2025-02-12 4/week @ 2025-02-19 16/week @ 2025-02-26

54 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
~204K SLoC