How to Write python code in a wordpress blog?
Question: I want to write some python code in a wordpress blog but whitespaces are not
preserved. Can some one please tell me how to write my python code in the blog
with the proper indentation and styling preserved as indentation is very
important for python code.


Answer: Use html **`<code>`** tag.

You can also try this very good plugin for code highlighting in WP.

[WP-SynHighlight](http://wordpress.org/extend/plugins/wp-synhighlight/)

And for blog hosted on wordpress.com:

As perfect answer on [this](http://stackoverflow.com/questions/1273647/how-do-
i-add-syntax-highlighting-to-a-wordpress-blog-hosted-on-wordpress-com) stack
post.

