PY to HTML
François Pinard
pinard at iro.umontreal.ca
Mon Jul 31 10:48:29 EDT 2000
[Bernhard Reiter]
> > Does anybody know anything that will enable me to convert a Python
> > script to HTML, so I can display it on a webpage nicely formatted with
> > syntax colour coding. Manually coding is a pain in the posterior :-)
I currently use `enscript' to directly produce HTML from Python with bold
and italics, on the fly within CGI scripts. You could modify files:
/usr/share/enscript/hl/python.st
/usr/share/enscript/hl/lang_html.st
to your taste, for other effects. I did not try it, but I presume it should
be doable. Years ago, I needed some non-standard things from `enscript',
and I remember I was able to get what I wanted after some work, but not much.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list