By Torsten Weggen on 10/14/2010 1:30 PM

Showing code is a very fundamental thing for a blogger writing about developing code. I like blogs with syntax highlighted code and there are a lot plugins for windows live writer outside which show code formatted well. But if you ever want to copy some of this code to clipboard for your own usage, you have to strip out html-tags, blank lines and all this format staff. This blog post is about how to do it in a better way:

using System;
using System.Collections.Generic;
using System.Text;

namespace CSharp
{
	public class Class1
	{
		public static void Main(string[] args)
		{
		}
	}
}