MV

Thursday, November 26, 2009

Get code blocks easily in your blogs

In my previous blog I added some Python code. But when I published my code all code was aligned to the left-hand side. Unfortunately indentation is very important for Python so some googling got me to this site:

http://www.simplebits.com/cgi-bin/simplecode.pl

Add your code and click Process and then remove all br tags (e.g. by using vim)

Copy this result in the html version of the blog.

No comments:

Post a Comment