Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rich text in gtk-sharp?

Does anybody out there know if there is a richtextbox equivalent in gtk# or any way to replicate the functionality?

I might not need full rtf support, I could probably get by with being able to show multicolored text if a full rtf solution can't be done.

Thanks in Advance.

like image 710
AvatarOfChronos Avatar asked Feb 03 '26 04:02

AvatarOfChronos


1 Answers

The TextView widget has support for rich text (though not RTF, AFAIK). You can define styles in TextTag objects in the TextTagList of the TextBuffer that the view is showing, and apply them to ranges of text in the TextBuffer.

like image 161
Mikayla Hutchinson Avatar answered Feb 04 '26 17:02

Mikayla Hutchinson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!