Syntax Highlighter ComPress is a plugin for code syntax highlighting. It loads fast on the website and code can pasted easily into WordPress.
This plugin requires WordPress 2.6 or later.
Usage with the TinyMCE button:
Usage without TinyMCE button:
<' with '<' (Seach & Replace). Then enclose your code with the pre Tag like this:
<pre class="brush:[code-alias]"> [Your Code Here] </pre>
For the '[code-alias]' segment you have to choose the right syntax/brush alias. For all the available brush aliases check out Alex Gorbatchev's Webpage. PHP code should look like this:
<pre class="brush:php">
<?php
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "\n";
?>
</pre>
Requires: 2.6 or higher
Compatible up to: 3.2.1
Last Updated: 2011-11-28
Downloads: 17,500
Got something to say? Need help?