Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!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.

Highlight Source Pro

Powerful, XHTML-compliant, server-side code highlighting for pretty much all languages

The plugin is simple to install:

  1. Upload the highlight_source_pro folder to your /wp-content/plugins directory
  2. Enable via Admin-Interface

How to Use

Set your code-blocks as <pre>-tags. If the language is supported by GeSHi (see file list in the /geshi-directory) use the filename (without extension) as language-attribute. If your code is encoded (html-entities; e.g. < is displayed as &lt; - most likely the case if you write in the visual editor) add the enc__-prefix. For example for a php-codeblock you would start as follows:

<pre lang="php">

You can control various things: * Start of Line-Offset, e.g. for #17: <pre class="17"> * define entity-encoded blocks, e.g. for php: <pre lang="enc__php"> * Define a title for your code-block that appears inside the block, but above the code lines. Everything in the same line as the opening <pre> tag will be considered the title, including HTML works fine:

        <pre lang="php"><strong>This is</strong> an <em>example</em> with a <h3>headline</h3>

* disable line numbers by not specifying an offset * combine all those things as long as you stick to the right order:

Requires: 2.3 or higher
Compatible up to: 2.5
Last Updated: 9 years ago
Active Installs: 200+


0 out of 5 stars


Got something to say? Need help?


Not enough data

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