CodeColorer is the plugin which allows you to insert code snippets into the post with nice syntax highlighting.
Plugin based on GeSHi library, which supports most languages. CodeColorer has various nice features:
- line numbers
- automatic links to the documentation inserting
- code block intelligent scroll detection (short code would have short block, for long one block height would be fixed and scrollbar would appear)
- predefined color themes (Slush & Poppies, Blackboard, Dawn, Mac Classic, Twitlight, Vibrant Ink)
- syntax colors customization in CSS file
- syntax highlighting of the code in comments
- code protect from mangling by Wordpress (for example, quotes, double-dashes, etc would look just right as you entered)
Changelog
- v0.7.3 (Jan 27, 2009)
- Fixed problem with XHTML validation when line numbers are on (thanks to dreame4).
- Added first_line option to code blocks.
- Added no_cc option to disable CodeColorer for particular <code> blocks.
- v0.7.2 (Dec 30, 2008)
- Fixed color scheme for XML language.
- Added custom CSS styles block to the options page.
- Removed codecolorer.css.in file as deprecated.
- Fixed bug wich code block paddings when line numbers are disabled.
- v0.7.0 (Dec 29, 2008)
- Added predefined color themes (Slush & Poppies, Blackboard, Dawn, Mac Classic, Twitlight, Vibrant Ink).
- Added block width and height options, removed line height.
- Fixed bug with plain text formatting.
- Added ability to remove vertical scrollbar.
- Line numbers will be rendered into the table, so they will not be copied to clipboard along with code.
- Options page layout updated to Wordpress 2.7 look&feel.
- GeSHi updated to version 1.0.8.2.
You can find complete changelog on the plugin home page.