How to paste python code on wordpress?

chris.atlee at chris.atlee at
Tue Nov 22 15:18:56 CET 2005

If you're using vim [1] as your editor, or even if you have it
installed, you can make use of the 2html.vim script [2] to convert your
python code to HTML complete with syntax highlighting.

In vim, try running:
:run! syntax/2html.vim

If you don't want to run vim as your editor, but just want to convert a
file to HTML, you can try something like:
gvim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q"



More information about the Python-list mailing list