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.

SyHi

Minimalistic Syntax Highlighter plug-in which also makes sure code can still be copied and pasted into your favourite compiler!

Usage

Whenever you want to post some syntax highlighted code, surround it with <code lang="language"></code>. That's it.

Example:

<code lang="php">
class HelloWorld()
{
    public function __construct()
    {
        echo "This is an unnecessarily long version of Hello World";
    }
}
</code>

The 'lang' attribute can be entirely omitted. You will get whitespace, quotes and dashes preservation... but no highlighting.

Uninstall

Just deactivate the plug-in, and remove its folder from the wp-content/plugins directory.

Thanks

Big thanks to the creators of the GeSHi library. Without it, the output of this plug-in would be very boring. Here's its homepage: http://qbnz.com/highlighter/

The following plug-ins were invaluable sources of inspiration and how-to-do-it-right:

You could say this plug-in is the sum of the essence of both plug-ins.

Requires: 2.8.5 or higher
Compatible up to: 3.0.5
Last Updated: 2010-11-18
Downloads: 1,127

Ratings

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