http://undefined.org/python/docpytils-0.0.tgz is a simple docutils directive that does simple python syntax highlighting in ReST.. basically, after importing docpytils, you can do something like this:
.. pycode::
python code here..
Like raw, you can also use :file: or :url: as arguments. To integrate this with PyDS, make sure the three python files are on sys.path somewhere (or inside PyDS), and import it from StructuredText.py
Output will look like this:
>>> from __future__ import *
File "<stdin>", line 1
SyntaxError: future statement does not support import *
>>> |