Adding Syntax Highlighter to my blog.

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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>