WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

CodeColorer

CodeColorer is a syntax highlighting plugin which allows to insert code snippets into blog posts. Supports color themes, code in RSS, comments.

How do I can customize CodeColorer CSS rules?

Go to the Options/CodeColorer page in Site Admin and change the "Custom CSS Styles" option.

I see &lt; instead of < (or other HTML entities like >, &, ") in my code.

You should use [cc escaped="true"] or [cce] in the visual editor when inserting code into the post.

Does it highlights my code on server or client side?

CodeColorer performs code highlighting on the server, you could see HTML of the highlighted code in page source.

Is it produces valid XHTML source?

Yes, resulting XHTML is completely valid.

Could my visitors insert their code snippets in comments?

Yes, CodeColorer supports code highlighting in comments using the same syntax, as you use in your blog posts.

How can I disable syntax highlighting for a particular `` block?

Use <code no_cc="true"> option for your code block.

I have updated the plugin to the newest version and now I keep getting following warnings:

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: 62,841

Ratings

4 stars
4.8 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,4,4 100,1,1
100,2,2 100,3,3 100,2,2
100,3,3
75,4,3
100,5,5 89,9,8
100,2,2
83,6,5
100,2,2
100,2,2
100,1,1
100,6,6
67,3,2 100,4,4
100,1,1 100,4,4
100,1,1
100,1,1
0,1,0
100,6,6
100,2,2
100,5,5
100,2,2
100,6,6
100,4,4
100,1,1
100,1,1
100,2,2