WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Syntax Highlighter Compress

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.

  1. Unzip and upload the files to your 'wp-content/plugins/' directory.
  2. Activate the plugin by logging into your WordPress administration panel, going to 'Plugins', then clicking the ‘Activate’ button for ‘Syntax Highlighter Compress’.
  3. Done, enjoy it.

Usage

Usage with the TinyMCE button:

  1. Create a new post or page in WordPress or open an existing post/page.
  2. Place the cursor into the main textarea where you want to insert the code.
  3. Click on the new TinyMCE button, you can find after the activation of the plugin.
  4. Paste your code into the textarea of the popup and choose which syntax/brush (PHP, JavaScript, ...) you want to use.
  5. Click on the 'Insert' button. That's all.

Usage without TinyMCE button:

  1. Take your code and replace all '<' with '&lt;' (Seach & Replace).
  2. 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"> &lt;?php $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input, 2); echo $input[$rand_keys[0]] . "\n"; ?> </pre>

  3. Paste final code into the main textarea of WordPress. Be sure, that you do this in the HTML view.`

Requires: 2.6 or higher
Compatible up to: 3.2.1
Last Updated: 2011-11-28
Downloads: 19,956

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1 100,2,2
100,4,4 50,2,1
50,2,1
100,1,1
100,2,2
0,1,0
100,1,1 100,1,1
67,3,2
100,1,1
100,1,1
100,2,2
100,1,1