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.

SyntaxHighlighter2

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

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: 6,203

Ratings

4 stars
4.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

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