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>
Pages: 1 2