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:

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.

1 comment: