Title: Better WordPress Syntax Highlighter
Author: Khang Minh
Published: <strong>April 6, 2011</strong>
Last modified: October 27, 2013

---

Search plugins

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.

![](https://s.w.org/plugins/geopattern-icon/better-wordpress-syntax-based-on-geshi.
svg)

# Better WordPress Syntax Highlighter

 By [Khang Minh](https://profiles.wordpress.org/oddoneout/)

[Download](https://downloads.wordpress.org/plugin/better-wordpress-syntax-based-on-geshi.zip)

 * [Details](https://sa.wordpress.org/plugins/better-wordpress-syntax-based-on-geshi/#description)
 * [Reviews](https://sa.wordpress.org/plugins/better-wordpress-syntax-based-on-geshi/#reviews)
 *  [Installation](https://sa.wordpress.org/plugins/better-wordpress-syntax-based-on-geshi/#installation)
 * [Development](https://sa.wordpress.org/plugins/better-wordpress-syntax-based-on-geshi/#developers)

 [Support](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/)

## Description

This plugin allows you to highlight code syntax in your posts. It is simple, lightweight,
and very easy to use with plenty of options to choose. This plugin works with both
editors and won’t mangle your code format. This plugin utilizes the popular PHP 
syntax highlighting library – [GeSHi](http://qbnz.com/highlighter/).

**Some Features**

 * Load the plugin only when you need it
 * Option to load media files (CSS, JS, etc.) only when needed
 * Built-in hooks for easier customization
 * A lot of options to choose (I bet you don’t need them all!)
 * Preview any snipplet of code to match your preference
 * Possibility to add more languages
 * Parse code within `<pre>` tag, `<code>` tag or using shortcode
 * Parse code within comments
 * Editor button to add code
 * Two output methods, Table or Ordered list
 * Style code globally or language-based
 * WordPress Multi-site compatible (not tested with WPMU)
 * And more…

**Get in touch**

 * I’m available at [BetterWP.net](http://betterwp.net) and you can also follow 
   me on [Twitter](http://twitter.com/0dd0ne0ut).
 * Check out [latest WordPress Tips and Ideas](http://feeds.feedburner.com/BetterWPnet)
   from BetterWP.net.

**Languages**

 * English (default)
 * Italian (it_IT) – Thanks to [Paolo Stivanin](http://www.polslinux.it)!

Please [help translate](http://betterwp.net/wordpress-tips/create-pot-file-using-poedit/)
this plugin!

Visit [Plugin’s Official Page](http://betterwp.net/wordpress-plugins/bwp-syntax/)
for more information!

## Screenshots

 * [[
 * Highlight syntax using the Table output method
 * [[
 * Highlight syntax using the Ordered List output method
 * [[
 * Editor button to highlight a block of text

## Installation

 1. Upload the `better-wordpress-syntax-based-on-geshi` folder to the `/wp-content/
    plugins/` directory
 2. Activate the plugin through the Plugins menu in WordPress. After activation, you
    should see a menu of this plugin on your left. If you can not locate it, click 
    on Settings under the plugin’s name.
 3. Configure the plugin
 4. Add code using the Editor Button
 5. Enjoy!

[View instructions with images](http://betterwp.net/wordpress-plugins/bwp-syntax/installation/).

## FAQ

[Check plugin news and ask questions](http://betterwp.net/topic/bwp-syntax/).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ Khang Minh ](https://profiles.wordpress.org/oddoneout/)

[Translate “Better WordPress Syntax Highlighter” into your language.](https://translate.wordpress.org/projects/wp-plugins/better-wordpress-syntax-based-on-geshi)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/better-wordpress-syntax-based-on-geshi/),
check out the [SVN repository](https://plugins.svn.wordpress.org/better-wordpress-syntax-based-on-geshi/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/better-wordpress-syntax-based-on-geshi/)
by [RSS](https://plugins.trac.wordpress.org/log/better-wordpress-syntax-based-on-geshi/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.6

 * Marked as WordPress 3.7 compatible.
 * Added an Italian translation. Thanks to Paolo Stivanin!
 * Updated BWP Framework to fix a possible bug that causes BWP setting pages to 
   go blank.
 * Updated GeSHi library to version 1.0.8.11.
 * Fixed a typo that causes an error with W3C validation.
 * **Good news**: ManageWP.com has become the official sponsor for BWP Syntax – 
   [Read more](http://betterwp.net/319-better-wordpress-plugins-updates-2013/).

#### 1.0.5

 * Fixed a small issue regarding HTML entities. Thanks again to tiaurus for reporting
   the bug!
 * Fixed a possible bug of the editor button when `wp-config.php` file was moved
   one directory up.

#### 1.0.4

 * Added a temporary fix for some HTML entities’ issues. Thanks to [tiaurus](http://n-wp.ru/)!

#### 1.0.3

 * Added 6 more default languages, as requested by users, including: Bash Script(
   bash), CSharp (csharp), Actionscript (as), Actionscript3 (as3), Apache (apache),
   MySQL (mysql).
 * Improved code preview
 * Improved generated CSS
 * Fixed the wrong version number in configuration page.

#### 1.0.2

 * Fixed a critical bug with the editor button (this is due to WordPress’s naming
   mechanism when submitting plugin).

#### 1.0.1

 * Fixed a minor Multi-site issue.

#### 1.0.0

 * Initial Release.

## Meta

 *  Version **1.0.6**
 *  Last updated **12 वर्षाः ago**
 *  Active installations **70+**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/better-wordpress-syntax-based-on-geshi/)
 * Tags
 * [code highlighting](https://sa.wordpress.org/plugins/tags/code-highlighting/)
   [geshi](https://sa.wordpress.org/plugins/tags/geshi/)[highlighting](https://sa.wordpress.org/plugins/tags/highlighting/)
   [syntax highlighting](https://sa.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [Advanced View](https://sa.wordpress.org/plugins/better-wordpress-syntax-based-on-geshi/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/reviews/)

## Contributors

 *   [ Khang Minh ](https://profiles.wordpress.org/oddoneout/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/better-wordpress-syntax-based-on-geshi/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://betterwp.net/wordpress-plugins/bwp-syntax/)