WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a quick question about CodeColorer plugin. How can I allow less then (<) and greater then (>) signs in java code. I am asking this because they are used in Generics but they are being stripped away when I use lang = java, so I am forced to use lang = html for now.

Any help is appreciated. Thanks for taking time to read this.


ok, the issue is resolved now.

The thing was that anything resembling html, like , was stripped by WordPress for all roles less then admin. I added this code to make it work for contributor,

$role = get_role( 'contributor' ); $role->add_cap( 'unfiltered_html' );

This resolved the issue.

share|improve this question

This is from the plugins FAQ:

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.

share|improve this answer
Doesn't work. It may be a WP issue as when I write [cce lang="java"]<test>[/cc] or [cc escaped="true" lang="java"]<test>[/cc], only [cce lang="java"][/cc] remains after saving the post. – AgentWP Dec 13 '11 at 19:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.