Saturday, January 31, 2009

Code highlighting on blogger

I found this here but thought I'd document it in case it disappears.

<link href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"> </script>

<body onload='prettyPrint()'>


<pre class="prettyprint">
... # Your code goes here
</pre>

No comments:

Post a Comment