Posted by & filed under Web Development.

The primary purpose of this blog is to help me catalog stuff that I find useful. I wanted a good way to highlight code snippets as well as make them downloadable when I want to reuse them. Thanks to this great post on hanselman.com I found Syntax Highlighter. Syntax Highlighter will decorate <pre></pre> tags that have been marked with specific CSS classes using JavaScript.  There is no need to have to include HTML markup in the code.   How great is that?!

Here is a test snippet:

function test() : String
{
	return 10;
}

Leave a Reply

  • (will not be published)