Highlighting .NET code from FreeTextBox


I’ve always wanted an easy (built into my blog editor) way to take a code snippet like this:


// Hello World
static void Main()
{
    Console.WriteLine(“Hello World”);
}


and make it look pretty like this:



// Hello World
static void Main()
{
Console.WriteLine(“Hello World”);
}


Well, thanks to Thomas Johansen and Christian Nordbakk for writting AylarSolutions Highlight. I’ve gotten it working in FreeTextBox for dasBlog. It would be cool if Scott added this to .Text as well.


I basically added this to FreeTextBox  by creating a button, adding it to a toolbar, and then having that button invoke an aspx page that looks like this:



 


Makes posting code snippets easy!

Comments (3)

  1. Yannick says:

    Could you show us how you incorporated it in dasBlog and FreeTextBox?

    Cool feature!

  2. Aaron Weiker says:

    I definatly agree that it would be awesome if this could get included in .Text as well.