CodeColorer is a syntax highlighting plugin which allows to insert code snippets into blog posts. Supports color themes, code in RSS, comments.
Go to the Options/CodeColorer page in Site Admin and change the "Custom CSS Styles" option.
You should use [cc escaped="true"] or [cce] in the visual editor when
inserting code into the post.
CodeColorer performs code highlighting on the server, you could see HTML of the highlighted code in page source.
Yes, resulting XHTML is completely valid.
Yes, CodeColorer supports code highlighting in comments using the same syntax, as you use in your blog posts.
` block?Use <code no_cc="true"> option for your code block.
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/wordpress/wp-content/plugins/codecolorer/lib/geshi.php on line 3599
Remove all files from the wp-content/plugins/codecolorer folder and unpack an archive with plugin again (thanks to Anatoliy 'TLK' Kolesnick).
= How to insert code from an external file?
You can upload this file using WordPress upload or put it somewhere in uploads folder,
and the specify relative path using file="relative/path/to/file" attribute:
[cc_ruby file="test_project/main.rb"][/cc_ruby]
This snippet will insert code from the UPLOADS_DIR/test_project/main.rb file.
Requires: 2.7.0 or higher
Compatible up to: 3.1.4
Last Updated: 2011-4-28
Downloads: 44,623




