Welcome to MSDN Blogs Sign in | Join | Help

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!

Published Friday, February 13, 2004 1:05 AM by omars
Filed under:

Comments

# re: Highlighting .NET code from FreeTextBox

Thursday, February 12, 2004 6:01 PM by Yannick
Could you show us how you incorporated it in dasBlog and FreeTextBox?
Cool feature!

# re: Highlighting .NET code from FreeTextBox

Thursday, February 12, 2004 8:21 PM by Aaron Weiker
I definatly agree that it would be awesome if this could get included in .Text as well.

# Highlighted code in FreeTextBox

Friday, February 13, 2004 5:33 AM by ThoughtChain
New Comments to this post are disabled
 
Page view tracker