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>