python html rendering

Paul Boddie paul at boddie.org.uk
Wed Oct 4 12:02:13 CEST 2006


Pierre Imbaud wrote:
> Hi, Im looking for a way to display some python code
> in html: with correct indentation, possibly syntax hiliting, dealing
> correctly with multi-line comment, and... generating valid html code if
> the python code itself deals with html (hence manipulates tag litterals.
> Thanks for your help!

Take a look at Highlight [1], a program used successfully in the
otherwise Python-based open source project ViewVC [2]. Messing around
with IDEs (as others have suggested) just isn't necessary here.

Paul

[1] http://www.andre-simon.de/
[2] http://www.viewvc.org/




More information about the Python-list mailing list