Any tool to convert Python source code to HTML?

Dave googlegroups at thuswise.com
Mon Feb 24 20:06:05 CET 2003


akineko at pacbell.net (Aki Niimura) wrote in message news:<b714b8de.0302231216.5cd81032 at posting.google.com>...
> Hello everyone,
> 
> I thought finding such was very easy but I couldn't find any pointer 
> in the Internet. I would like to put my Python code to my Intranet.
> 
> Instead of putting a plain text, I would like to put a HTMLized code
> (with keyword coloring, simple links to def, class, ...)
> 
> I found so many articles, postings regarding to Python's HTML modules.
> Also, there must be a tool to create a HTML page summarizing a class
> (class name, member function, ...). But not python source code itself.
> 
> Yes, I understand putting a whole source code is not so useful for a
> big complex program. But my program is not so big such that showing 
> the entire source code is still very helpful.
> 
> Is there any software tool to create a HTML page from Python source code?
> 
> Any info would be highly appreciated.
> 
> Best regards,
> Aki Niimura


Hi Aki,

    Hope you don't mind if I wade in with my shameless plug;

    http://www.thuswise.co.uk/py2html.html

    This is no relation to other "py2html"s that may have been
suggested; it's based on Xavier Defrang's string replacement recipe,
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81330 .

    Easily adaptible to any other language syntax.


             Best Regards,


                        Dave.




More information about the Python-list mailing list