After four or so years of using wordpress.com for my blog I finally figured out how to highlight code (prettify) in a blog post.
A thank you to @jasonclevine who sent me message on twitter on how to do this.
All you need to do is wrap your code with
There are a bunch of different languages supported and other options which can be defined. You can find all the details here: http://en.support.wordpress.com/code/posting-source-code/
2 comments
Comments feed for this article
Monday, November 21, 2011 at 9:09:47
lruckman
Thanks! I was wondering how to do this as well, I just assumed it was a plugin all along.
Monday, November 21, 2011 at 17:05:37
Brettski
What was even more difficult was figuring out how to show the sourcecode tags in the post. 🙂