Re: Gtk2::TextView and Pango



Jens Luedicke said:
Hiho...

I would like to work with markup text within
a Gtk2::TextView.

Are there any hints how to do this?

you mark up the text with Gtk2::TextTags.  in general, you create some named
tags, and then use those tags when inserting text, e.g.,
$textbuffer->insert_with_tags_by_name(), or apply tags to portions of the text
defined by start and end iters.  the textview portion of gtk-demo has lots of
examples.

http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/gtk-demo/textview.pl?rev=1.11&view=markup

cd Gtk2/gtk-demo && perl main.pl

-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]