Saturday, March 7, 2009

Testing code highlighter

This should look snazzy.


public interface IComicBookRepository
{
ComicBookCollection GetComicsByGenre(Genre genre);
}

2 comments:

Ed said...

Nifty! What package/util/JavaScript are you using for that?

Nick said...

Alex Gorbatchev's SyntaxHighlighter. Setting it up is cake. Just follow the instructions on the website. You don't need to upload anything. It's all hosted. Just beware that you'll need to add an extra line of code since you're on Blogger:

SyntaxHighlighter.config.bloggerMode = true;

Or else you get nasty break tags in your snippet (as you may have seen and I only fixed now).