Re: hilghlighting



3rdShift wrote:

> Both Gtk::Label and Gtk::TextView support Pango markup which gives you
> more then enough to accentuate your text.
> 
> http://library.gnome.org/devel/pango/stable/PangoMarkupFormat.html
> 

before digging deeper into pangomm I would like to know if following can be
done. Can I extend the <span/> element with an id attribute i.e.:
"<span foreground="blue" size="x-large" id="x:y">Blue text</span> is
<i>cool</i>!"

or can I do:

"<id n="x:y"><span foreground="blue" size="x-large">Blue text</span> is
<i>cool</i></id>!"

or in other words how can I get "Blue text" from a string i.e. "The Blue
text on the Blue text background is invisible" with regard to different
encodings.

Thanks in advance






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