=== CodeHighlighter === Contributors: iwongu Tags: post, formatting, syntax highlight Requires at least: 2.0 Tested up to: 2.2 Stable tag: 1.7 This plugin is a syntax highlighter for source code using GeSHi. == Description == This plugin is a syntax highlighter for source code. It uses *GeSHi* as fontifier engine. = Usage = 1. Put the code snippet to pre tag. 1. Add the lang attribute to the pre tag like the following. `
`
1. Add the lineno attribute to the pre tag after the lang tag like the following if you want to display line numbers. The number in the lineno tag becomes a start line number. There is no default value for the start line number. So you must supply the value to the lineno tag. ``
1. If you do not add lang attribute, the pre tag is handled normally.
1. If you want to have border, add the style like the following to your .css file. `pre { border: 1px dotted #ccc; padding: 0.2em 0.5em; }`
1. You can use following languages in lang. `actionscript, ada, apache, asm, asp, bash, c, c_mac, caddcl, cadlisp, cdfg, cpp, csharp, css, delphi, html4strict, java, javascript, lisp, lua, mpasm, nsis, objc, oobas, oracle8, pascal, perl, php, python, qbasic, sas, smarty, vb, vbnet, visualfoxpro, xml`
= Preview =
* [CodeHighlighter plugin test page](http://ideathinking.com/blog-v2/?p=13)
== Installation ==
1. Unzip the plugin archive.
1. Upload the directory to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
== Known issues ==
1. Because this plugin uses regular expression to match string range from `` to `
`, you can't use `` in your code snippet. If you must put the `` tag, you can put a space between `<` and `/pre>` like `< /pre>`. The `< /pre>` is converted to `` automatically by plugin.
1. If you want to change the style, you should modify the plugin source file. :-P