Best way to do syntax highlighting in GTK+?

Posted by Tyler on Stack Overflow See other posts from Stack Overflow or by Tyler
Published on 2010-12-23T02:52:03Z Indexed on 2010/12/23 2:54 UTC
Read the original article Hit count: 240

Filed under:
|
|

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!

© Stack Overflow or respective owner

Related posts about c

    Related posts about syntax-highlighting