Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Write python code in a wordpress blog? [closed]

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.

like image 230
manyu Avatar asked Jul 10 '12 12:07

manyu


1 Answers

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.

like image 64
Rikesh Avatar answered Oct 17 '22 08:10

Rikesh