SyntaxHighlighter, Windows Live Writer, and BlogEngine.NET

1 Feb
2009

Since setting up the blog, I’ve been trying to figure out the best way to post up some code examples.  Personally I hate it when I go to a blog and find a piece of useful code online, but its not readable or even worse its a screen capture where you can’t even copy and paste the source and format it yourself.  So I stumbled onto SyntaxHighligher on Google. Then I did a bit more digging and found Chris Blankenship blog, where he outlined how to use SyntaxHighligher, Windows Live Writer, and BlogEngine.NET to create nicely formatted source code blog posts.

Here is an example:

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

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!!");
        }
    }
}

Comment Form

top