You can directly use Google Prettify.
Read their Google Code Prettify Readme or wiki and they will tell you how to use them as a hosting provider.
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
Then, to use the niceprint properties of Google Prettify code, add class="prettyprint" to your code blocks, which should be in pre or code . Examples below:
<pre class="prettyprint">...</pre>
or
<code class="prettyprint">...</code>
Peter Dietz Feb 28 '13 at 18:00 2013-02-28 18:00
source share