Code syntax highlight for Gtk.TextView buffer

Hello, is any crate available to highlight code syntax for Gtk.TextView buffer?

If there is no Glib-oriented solutions yet (that works with TextTag), please advice any other crate that include popular languages and support dark/light mode from the box

Thanks

Unsure of GLib related solutions. But something like syntect seems like a solution to your problem.

1 Like

Thanks much for advice!

Just integrated this plugin, if somebody want Glib integration example, here is pretty raw but implementation.