Plugin Directory

Highlight Source Pro

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:

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(9 ratings)