js - SyntaxHighlighter
<script src="http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shCore.js"></script>
<link rel="stylesheet" href="http://agorbatchev.typepad.com/pub/sh/3_0_83/styles/shCore.css"/>
<link rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"/>
<script src="http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js"></script>
<!-- HTML -->
<pre class="brush: js">
function foo()
{
}
</pre>
<!-- Finally, to actually run the highlighter, you need to include this JS on your page -->
<script type="text/javascript">
//binds window load, when the page loads, then use this method.
SyntaxHighlighter.all();
//highlights elements whenever you will call this method.
SyntaxHighlighter.highlight();
</script>