views:

36

answers:

2

How do I add code snippets to a web page? I've built a jquery plugin for my front-end team and I want to build a quick page illustrating its use. I want to include some code and i've seen a few sites using stylized code snippets (colour coding, indentation etc). How is this achieved?

+3  A: 

JavaScript based Syntax Highlighter gives very nice formatting.

alt text

Cloudanger
Brilliant. That's the one I was after. I just couldn't find it via google. Thanks
elduderino
+3  A: 

Use the same as Stackoverflow uses: Google Prettify.

BalusC