Re: Trying to pretty-print XML within pango markup language



On Mon, 2003-05-26 at 06:17, Sven Neumann wrote:
> Hi,
> 
> Dave Malcolm <david davemalcolm demon co uk> writes:
> 
> > I want to use the Pango markup language to display syntax-highlighted
> > XML in a GtkTreeView.  Unfortunately, XML looks a lot like the Pango
> > markup language.  Is there a way of "escaping" my "<" and ">" symbols,
> > perhaps using "&lt"; and "&gt"?
> 
> It works exactly like that. Did you try it?

Worth mentioning:

gchar* g_markup_escape_text (const gchar *text,
                             gssize       length);

may be useful if you want to escape blocks of text.

Regards,
                                    Owen





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