This plugin allows users to highlight code.
| Author: | John Ciacia (profile at wordpress.org) |
| WordPress version required: | 2.0.2 |
| WordPress version tested: | 2.8 |
| Plugin version: | 1.3 |
| Added to WordPress repository: | 08-05-2009 |
| Last updated: | 28-09-2009
Warning! This plugin has not 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.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | |
| Total downloads: | 1 811 |

Click to start download
|
This plugin enables you to highlight syntax using the PEAR Text_Highlighter class. Other syntax highlighters that use GeSHi have slower rendering speeds which will increase your page load time. However, this plugin gives you the speed and efficiency provided by the PEAR developers. You even have the option of enabling or disabling the line numbers as well as specifying your own style.
FAQ
How do I highlight my code?
You can use the [code][/code] bbtags. Simply place your code between the tags and your code will be highlighted. You may also specify one of the supported languages by using the lang parameter – [code lang=”PHP”][/code]
How do I enable/disable line numbers?
Under the settings menu click on the Syntax Highlighter link. From there either select “Yes” or “No” to the Line Numbers option.
Characters are being converted to their HTML entities
This is because you have entered your code in Visual mode. You must enter your code in HTML mode.
This plugin breaks my XHTML validation.
This plugin encapsulates code using div tags. Div is a block element and cannot be placed inside an inline element. This is probably causing your validation to break. If you place [code] tags inline, you are placing them inside a
<
p> which is an inline element. This causes your validation to break. Therefor you must place [code] tags on a line by itself. For example: BAD This is hello world in PHP: [code][/code] GOOD This is hello world in PHP:
[code][/code]