WordPress code tag syntax highlighting

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

  • goto the wp-admin
  • goto plugins > install new
  • search for ‘Syntax Highlighter MT 2.0’
  • install it.

to highlight code in the front end you can use a
<code></code>
or a
<pre></pre>
tag
<pre></pre>

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

http://www.megatome.com/syntaxhighlighter/

Tags for WordPress code tag syntax highlighting

Development Highlight Install Php Syntax