This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.



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 (

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:


  • Editing a post with source code.
  • Viewing a post with source code.
  • Clicking on the "View Raw Code" link.
  • Running in WordPress 3.0-beta1


Please download and install the plugin from within WordPress.

Alternatively, please review the instructions available here:


Works with small fix

Searched something like this, fast and lightweight. Gave it a try even with seeing that it was nor marked as compatible and was last updated in 2011. It threw some errors, but after fixing them it works perfectly.

Here are the fixes

Read all 1 review

Contributors & Developers

“jQuery.Syntax” is open source software. The following people have contributed to this plugin.


Translate “jQuery.Syntax” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.