JQuery no conlict mode

If you are creating a wordpress theme with some jquery then you should not load your own version of jquery. WordPress comes with an up to date version which is loaded in the “no conflicts mode”.

if you use the $ sign just wrap your code in this:

jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function
});

Code Syntax Highlighting

A brilliant little plugin to use in wordpress for syntax highlighting is WP-Syntax.

All you have to do is install the plugin and the add

<pre lang="html"></pre>

around the code you want to highlight.
Want to show line numbers show you can explain your code, or do you already have html entities escaped… No problem

1
<pre lang="html" line="1" escaped="true" ></pre>