Formatting code in WordPress

OK, so it is my second post, and things are going downhill already.

Meta-Blogging. The first rule of blogging is no meta-blogging.

Someone might find this useful though.

I just figured out how to get nice code formatting with little effort, just by installing a WordPress plugin. This will syntax highlight c#, sql, java, html amongst others.

All you need to do to is search for “Google Syntax Highlighter for WordPress” under Add New Plugin.

Activate the plugin.

This documents how to use the code from within a pre or textarea tag.

Console.WriteLine("That's pretty simple");
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Uncategorized. Bookmark the permalink.