How to paste python code on wordpress?
could.net at gmail.com
Tue Nov 22 06:30:08 CET 2005
but how can paste "<" and ">", please?
these 2 symbols will also confuse wordpress and I can't publish what I want.
On 11/22/05, Dan Lowe <dan at tangledhelix.com> wrote:
> On Nov 21, 2005, at 8:17 PM, could ildg wrote:
> > Wordpress.com <http://Wordpress.com> blog will eat up the spaces before
> a line,
> > just as it will trim every line of my article. So I can't paste
> > python code indentedly.
> > Does any one use wordpress blog here?
> > Please tell me how to leave the sapces as they are when publishing
> > ariticles on the blog,
> You can enclose the code in a PRE block, like this:
> def foobar():
> print "abc"
> if x == 3:
> print "def"
> print "ghi"
> If you don't care for how it renders in a browser, hack your CSS to
> make PRE render in a way you like.
> Well sure the government lies, and the press lies, but in a democracy
> they aren't the same lies. -Alexis A. Gilliland
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list