[Gtk-sharp-list] TextBuffer and TextTags

Phil Durand draek@shaw.ca
Sat, 17 Jul 2004 16:55:46 -0600


Since none of this stuff is documented, and I cant seem to be able to
figure out how to do this, I need to ask for help.

I'm trying to format text within a TextView. Things like bolding,
changing font etc, but for specific areas of the buffer, not for all the
textview.

I've found Buffer.InsertWithTags, which takes the text and the iter to
insert at, as well as a TextTag Array. Now how to insert tags in there
is beyond me, because I dont understand how the TextTag class works (if
this is in fact the tools to use to acomplish my task)

Could someone help me figure out how to insert tags within my text to
add bolding, font and color to parts of text that I insert? thanks for
any help

Phil