[IronPython] FlowDocument XAML syntax highlighting and restructured text

Michael Foord fuzzyman at voidspace.org.uk
Tue Aug 11 01:35:18 CEST 2009

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:


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:


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

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.



More information about the Ironpython-users mailing list