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!
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: 3 years ago
Active Installs:
10,000+
Got something to say? Need help?