Posting Source Code to WordPress.com

2007/09/12 6:07:14

The other day I tried to blog about the vte.terminal, and I had huge problems posting the source code. My problem was that despite how much I searched, and everything I tried, I could not keep the formatting and post the source code. The formatting was wrong when I used the <code> tags (The spaces where removed and in python that’s important).

It turns out that this was the most correct with the exception that befor you make your post you must go to Users then Your Profile and make sure “Use the visual rich editor when writing”
is unselected instead of


you are going to want to have

#This
#is an example
#of what your source code will look like
x = True
if x:
    print 'hello world'

The source for this post can be found here.