Color-Coded Source code in blogs
Someone recently asked me how I do the color coding of source code in my blog. Well, it is really very simple. I do my work in VS 2005 Express and then cut and paste it into word (an email actually), then cut and paste that into a blog entry… and presto… nicely formatted, color source code to blog about…. Enjoy!
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Hello World!");
}
}