WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-Syntax

WP-Syntax provides clean syntax highlighting for embedding source code within pages or posts.

WP-Syntax provides clean syntax highlighting using GeSHi -- supporting a wide range of popular languages. It supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.

It avoids conflicts with other 3rd party plugins by running an early pre-filter and a late post-filter that substitutes and pulls the code snippets out first and then pushes them back in with highlighting at the end. The result is source code formatted and highlighted the way you intended.

Usage, Supported Languages, Styling Guidelines, and Release Notes are availabe in the Other Notes section.

Want to contribute? WP-Sytax can be found on Github. Fork and submit your pull requests today!

Basic Usage

Wrap code blocks with <pre lang="LANGUAGE" line="1"> and </pre> where "LANGUAGE" is a GeSHi supported language syntax. The line attribute is optional. More usage examples

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-2-10
Downloads: 274,139

Ratings

3 stars
3.9 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,3,3
100,10,10
100,4,4
88,8,7
82,17,14
100,1,1 86,29,25
88,8,7
100,21,21 100,1,1
100,1,1
100,5,5
100,3,3 100,4,4
0,1,0 100,1,1
100,1,1 78,18,14
100,1,1 100,5,5
100,6,6
80,5,4 100,4,4
100,1,1 100,1,1 89,18,16
100,4,4
58,12,7
100,5,5
100,2,2
80,5,4 100,4,4
94,16,15
100,2,2
100,1,1 93,14,13
100,3,3
100,1,1
75,4,3
100,1,1
100,2,2
100,1,1
100,3,3
100,2,2
0,1,0