WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Syntax Highlighter MT

Provides a simple way to use the Syntax Highlighter tool from http://alexgorbatchev.com/wiki/SyntaxHighlighter

Highlighting code

The basic usage is: <pre class="brush:brush_name">...code...</pre> where brush_name is one of the available brushes.

Why does my content containing "<" and ">" get messed up?

This is an issue with using the <pre /> tags. Replace the < characters with their entity escape of &lt; to get the desired result. See http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html for more discussion. (Note that this issue only happens if you are using the <pre /> tags to surround the highlighted code.)

I get an error saying "Can't find brush for: xxx"

The most likely issue is that the specified brush is not available as part of the plugin install.

Why "Syntax Highlighter MT"?

There are several plugins already that are named Syntax Highlighter, or some variant. I added "MT" (for Megatome Technologies - my company) to the name to make it unique.

Requires: 2.7.1 or higher
Compatible up to: 3.9.0
Last Updated: 2014-4-30
Downloads: 16,527

Ratings

3 stars
3.8 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
100,3,3
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1