Hello all,

Just to let you know I've started a project to generate FlowDocument XAML from reStructuredText source. There is also a pygments formatter so that source code can be formatted.

The project, rst2xaml is at:

   http://code.google.com/p/rst2xaml/

So far it can cope with rest documents consisting of bold, italics, blockquotes and the sourcecode directive!

The pygments formatter looks quite nice though - here is the output shown in a FlowDocumentReader:

   http://twitpic.com/dfwu5

The goal is to be able to show highlighted Python examples / tutorials alongside an interactive interpreter in the browser with Silverlight / Moonlight.

Currently rst2xaml.py itself runs under CPython, but the xaml it generates is intended to be used from IronPython with WPF. There is an example script, display_xaml.py, that will show generated xaml in a window.

Michael

--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog


_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to