This will show you how to get syntax highlighting in wordpress posts using the code tag.
you need to install the ‘Syntax Highlighter MT 2.0’ plugin
to highlight code in the front end you can use a
tags are the prefered way, as they degrade nicely
just use class=”brush:html” for html code and class=”brush:php” for php code, etc
see full instructions here