Mike Bailey
Mike Bailey

Reputation: 12817

Setting text color of TextView in GTK#

I'm working on highlighting for a TextView component of my application, and I can't seem to find the API references on how to accomplish this.

Can anyone point me in the direction of how I can accomplish this, or possibly towards the documentation that says how to do this?

Upvotes: 1

Views: 1456

Answers (2)

ptomato
ptomato

Reputation: 57870

Perhaps you're looking for GtkSourceView?

Upvotes: 0

mkestner
mkestner

Reputation: 246

You apply TextTags to ranges of text in the TextBuffer. Create the tags on the buffer's TextTagTable and then Apply then to a range using TextIters to specify the start and end point for the tag.

Upvotes: 2

Related Questions