Plugin Directory

SyntaxHighlighter2

Easily post source code such as PHP or HTML and display it in a styled box.

Download Version 2.1.2

The BBCode in my post is being replaced with <pre>'s just fine, but I don't see the syntax highlighting!

Make sure your theme's footer has <?php wp_footer(); ?> somewhere in it, otherwise the JavaScript highlighting files won't be loaded.

I still see the BBCode in my post. What gives?

Make sure you correctly use the BBCode with a valid language attribute. A malformed usage of it won't result in replacement.

Is this plugin licensed under GPL?

Yes, like most plugins in the WordPress plugin directory, if not all. However the SyntaxHighligter javascript library is licensed under LGPLv3.

Can I hide the toolbar, ruler, etc?

Yes, you can give any of the options mentioned in http://alexgorbatchev.com/wiki/SyntaxHighlighter:Configuration#SyntaxHighlighter.defaults as option attribute. See example bellow.

[sourcecode language='css' option='toolbar: false;']code here[/sourcecode]

Requires: 2.0 or higher
Compatible up to: 3.0.0
Last Updated: 2010-5-30 Downloads: 5,622

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(8 ratings)

Compatibility

+
=
Not enough data

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

Log in to vote.

100,1,1
0,1,0
100,1,1 50,2,1
100,1,1
100,1,1