Tyler
Tyler

Reputation: 155

Best way to do syntax highlighting in GTK+?

I was wondering if someone could point me to an example of (or just their thoughts on) the best way to code syntax highlighting in a C-based GTK+ application. I know that I can use the GtkTextTag to modify text in a GtkTextBuffer but beyond searching out keywords (iteratively or by regexing the string) is there a better way? My only concern is that if I wipe all of the tags and then re-search and apply the tags at every text change event it could really bog down my application.

As always thanks for your help!

Upvotes: 1

Views: 1181

Answers (1)

Tyler
Tyler

Reputation: 155

I got GtkSourceview to work and it works well.

Upvotes: 1

Related Questions