Plugin Directory

jQuery.Syntax

jQuery.Syntax is an extremely fast and lightweight syntax highlighter.

Download Version 3.0

jQuery.Syntax is an extremely fast and lightweight syntax highlighter. It has dynamic loading of syntax source files and integrates cleanly using CSS or modelines. It supports a large number of different programming languages.

This WordPress plugin provides syntax highlighting using jQuery.Syntax, supporting a wide range of popular languages. It supports both block elements (pre) and inline elements (code) for highlighting.

Wrap code blocks with <pre class="syntax {language}"> and </pre> where {language} is a jQuery.Syntax supported brush (http://www.oriontransfer.co.nz/software/jquery-syntax/examples).

Wrap inline code with <code class="syntax {language}"> and </code>.

If the code has already been escaped (i.e. characters such as <, >, have been converted to html entities), then add escaped into the class list: <pre class="syntax escaped {language}">. This will prevent the filter from doing this conversion automatically.

For more details, examples, source code, love and rainbows, please visit the project page: http://www.oriontransfer.co.nz/software/jquery-syntax

Author: Samuel Williams

Requires: 2.9 or higher
Compatible up to: 3.0.5
Last Updated: 2011-5-8 Downloads: 2,430

Average Rating

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

Compatibility

+
=
Not enough data

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

Log in to vote.

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