[pygtk] TextBuffer to Markup

Giuseppe Penone giuspen at gmail.com
Thu Feb 17 02:42:14 WST 2011


I implemented a class for my application CherryTree that does exactly what
you asked for,
take a look at:

http://code.google.com/p/giuspen-cherrytree/source/browse/modules/exports.py

hth, cheers,
Giuseppe.


On Wed, Feb 16, 2011 at 6:05 PM, Bradlee Landis <bradleelandis at gmail.com>wrote:

> Is there an easy way to convert from a TextBuffer to the Pango Markup
> Language? I can't seem to find it, even though it seems like it would
> be a desired feature by at least a few people.
>
> I need to save the data inside an XML document, with formatting
> intact, and so I was just going to use the Pango Markup Language to
> store it. I would accept other suggestions though.
>
> --
> Thanks,
> Brad Landis
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110216/91bae71e/attachment.html>


More information about the pygtk mailing list