Any tool to convert Python source code to HTML?

logistix logistix at zworg.com
Tue Feb 25 07:15:40 EST 2003


Mike Meyer <mwm at mired.org> wrote in message news:<x73cmdfyby.fsf at guru.mired.org>...
> logistix at zworg.com (logistix) writes:
> 
> > akineko at pacbell.net (Aki Niimura) wrote in message news:<b714b8de.0302231216.5cd81032 at posting.google.com>...
> > > Is there any software tool to create a HTML page from Python source code?
> > I'm polishing up my first beta of PyXR right now.  It does a
> > reasonable job of creating cross-referenced hyperlinks.  There should
> > be something on comp.lang.python.announce by this weekend.
> 
> How does it do at colorizing? Or - given that there are lots of tools
> to do colorizing (the cookbook solution, VIM, Emacs, enscript, and
> others), how about making it ignore existing HTML tags so I can
> colorize it and then use PyXR to create the xreferene links?
> 

You need to build a syntax-tree to build the xref'd links.  I would
prefer a pure python input to do this.  In release one you'll be stuck
with my color scheme, but I plan to yank it out into a customizable
class eventually.




More information about the Python-list mailing list