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.
Leave a Reply
You must be logged in to post a comment.
Use html
<code>
tag.You can also try this very good plugin for code highlighting in WP.
WP-SynHighlight
And for blog hosted on wordpress.com:
As perfect answer on this stack post.