python html rendering

2006-10-03 Thread Pierre Imbaud
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!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python html rendering

2006-10-03 Thread Pierre Imbaud
hanumizzle wrote:

 On 10/3/06, Colin J. Williams [EMAIL PROTECTED] wrote:
 
 
Another approach is to use PyScripter (an editor and IDE). One can
generate documentation and then save the generated html doc.

Also PyDoc can be used directly.
 
 
 And if you want to go the traditional way, Emacs and Vim can both be
 used to produce colored HTML IIRC. Not sure about Vim (something like
 2html.vim I believe), but Emacs has htmlize.el.
htmlize.el works fine, but I was looking for an automated process!
not that easy to call xemacs from cgi code!
Thanks anyway, nice tool, might help
 
 If someone already said this, pardon me; I just joined via python-list.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python html rendering

2006-10-03 Thread Pierre Imbaud
Colin J. Williams wrote:

 Josh Bloom wrote:
 
Hey Pierre,

I'm using this plug-in for wordpress to display Python code. 
http://blog.igeek.info/wp-plugins/igsyntax-hiliter/
It works pretty well and can display a lot of other languages as well.

-Josh


On 10/3/06, *Pierre Imbaud* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
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!

--
http://mail.python.org/mailman/listinfo/python-list


 
 Another approach is to use PyScripter (an editor and IDE). One can 
 generate documentation and then save the generated html doc.
 
 Also PyDoc can be used directly.
pydoc doesnt html the code, but its documentation. U seem to say 
PyScripter does the same?
I rather thought of some module built on python parser, generating html 
or xml, ideally customizable.
Thanks for your help!
 
 Colin W.
 

-- 
http://mail.python.org/mailman/listinfo/python-list