Posting code on your blog

Unfortunately the images to this post were lost during the migration from Blogengine.Net to WordPress

If you have a technical blog it’s very important that you can somehow easily post code snippets to your blog. I was using the Visual Studio plugin Copy source as HTML for a while but I wasn’t very enthusiastic about the result. I don’t like the fact that I need a plugin in Visual Studio to be able to post code to my blog. Visual Studio is for programming. Jan told me that there was a Windows Live Writer plugin as well to do this. A few days ago I found the best plugin ever. It allows you to paste code into an intermediate window and then formats it for you!

Because I recently converted to the dark side, I didn’t want my code snippets all to have a black background. But this problem is solved by the plugin without any configuration (As you can see below).

Screenshot from Visual Studio.

Code pasted via the Windows Live Writer plugin:

namespace TwotoContentTests.FilterAttributes
{
	class Class1
	{
	}
}

What are you waiting for? Go download it!