jQuery.Syntax is an extremely fast and lightweight syntax highlighter.
| Author: | Samuel Williams (profile at wordpress.org) |
| WordPress version required: | 2.9 |
| WordPress version tested: | 3.0.5 |
| Plugin version: | 3.0 |
| Added to WordPress repository: | 15-04-2010 |
| Last updated: | 08-05-2011
Warning! This plugin has not 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.
|
| Rating, %: | 80 |
| Rated by: | 1 |
| Plugin URI: | http://www.oriontransfer.co.nz/software/jquer... |
| Total downloads: | 4 026 |
| Active installs: | 60+ |
![]() Click to start download |
|
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
