[SciPy-user] formatting python code for html

David Cournapeau david@ar.media.kyoto-u.ac...
Tue Aug 14 09:15:06 CDT 2007


Ryan Krauss wrote:
> Can anyone recommend a good tool to turn Python code into something
> nicely formatted to display in html?  I am thinking for something that
> gets results like the Latex listings package without having to run
> Latex - and with output that could display natively in a web browser,
> i.e. not pdf or dvi.
>
> Any suggestions would be welcome.  A python script that generates
> nicely formatted html would be the best solution I can think of.
>   
http://pygments.org/ is what I used for my own website. It does many 
languages, and is written in python.

David


More information about the SciPy-user mailing list