jquery to color code text
<p>I give php code examples on my site and was wondering if their was a way  I could colour code them so that it is easier to read like an IDE would do. I always display the code in a div with a class of code and then in pre tags. See my example below.</p>

<pre><code>&lt;div class="code"&gt;
   &lt;pre&gt;
      &lt;?php
         echo 'hello world';
      ?&gt;
   &lt;/pre&gt;
&lt;/div&gt;
</code></pre>

<p>I was wondering if there was a way to do it with jQuery like in a sort of string match way. So give jquery an array of strings that should be blue for example, and then jQuery would look through the code blocks and any words that match it adds a class of blue to them or something? Anyone know of how I would achieve this? Maybe there is a much simpler way already? </p>

<p>Thanks</p>
