Title: Goodbye Syntax Highlighter
Author: dwhitevisoft
Published: <strong>14 Ogos 2012</strong>
Last modified: 11 Februari 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/goodbye-syntax-highlighter.svg)

# Goodbye Syntax Highlighter

 Oleh [dwhitevisoft](https://profiles.wordpress.org/dwhitevisoft/)

[Download](https://downloads.wordpress.org/plugin/goodbye-syntax-highlighter.0.1.2.zip)

 * [Details](https://ms.wordpress.org/plugins/goodbye-syntax-highlighter/#description)
 * [Reviews](https://ms.wordpress.org/plugins/goodbye-syntax-highlighter/#reviews)
 *  [Pemasangan](https://ms.wordpress.org/plugins/goodbye-syntax-highlighter/#installation)
 * [Pembangunan](https://ms.wordpress.org/plugins/goodbye-syntax-highlighter/#developers)

 [Support](https://wordpress.org/support/plugin/goodbye-syntax-highlighter/)

## Description

For years I’ve used [Alex Gorbatchev’s SyntaxHighlighter](http://alexgorbatchev.com/SyntaxHighlighter/).
It has served me well over the years. When I moved to WordPress I tried various 
plugins based on the library, such [SyntaxHighlighter Evolved](https://wordpress.org/extend/plugins/syntaxhighlighter/).

I’ve decided to start blogging using [Markdown](http://daringfireball.net/projects/markdown/).
Making this move I needed to find a way to highlight various bits of source code
in an easy way. There are many nice libraries that make this a snap, such as [google-code-prettify](http://code.google.com/p/google-code-prettify/)
or [highlight.js](http://softwaremaniacs.org/soft/highlight/en/). In the end I decided
to go with highlight.js, for the simple reason that it is automatic, working flawlessly
with Markdown’s code syntax output.

Great, but my existing source code examples use SyntaxHighlighter’s style for code
blocks (using `<pre class="brush: ruby;" />`, for example). I could have converted
things in a few ways:

 * Change the database
 * Write a JS script to convert the `<pre />` structure to `<pre><code /></pre>`
 * Write a JS script to call highlight.js’ `highlightBlock` method
 * Write a WP plugin and reformat things easily **Ding Ding Ding**

So there you have it. This WordPress plugin will go through and process your SyntaxHighlighter
style blocks into ones that highlight.js works with out-of-the-box. It will also
add the language that you have specified with the `brush` class and add it as a 
class on the `<code />` element ([following the HTML5 recommendation](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-code-element)).
Nothing is changed in the DB, so if you decide to go back to SyntaxHighlighter, 
you can without any issues.

### GeSHi

This plugin now supports conversion of [GeSHi](http://qbnz.com/highlighter/) style
code blocks! Now you can move from plugins such as [WP-Syntax](https://wordpress.org/extend/plugins/wp-syntax/)
and [WP-GeSHi-Highlight](https://wordpress.org/extend/plugins/wp-geshi-highlight)
to highlight.js.

GeSHi uses the syntax that is _close_ to SyntaxHighlighter, except instead of putting
the language in the `class` attribute, it uses the `lang` attribute. Similar to 
the SyntaxHighligher conversion, it will go through and process your GeSHi style
blocks into ones that highlight.js works with out-of-the-box. It will also add the
language that you have specified with the `lang` attribute and add it as a `class`
on the `<code />` element.

## Installation

Installation is standard and straight forward.

 1. Upload the `goodbye-syntax-highlighter` folder (and all it’s contents) to the `/
    wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Goodbye Syntax Highlighter” adalah perisian sumber terbuka. Orang-orang berikut
telah menyumbang kepada pemalam ini.

Penyumbang

 *   [ dwhitevisoft ](https://profiles.wordpress.org/dwhitevisoft/)

[Translate “Goodbye Syntax Highlighter” into your language.](https://translate.wordpress.org/projects/wp-plugins/goodbye-syntax-highlighter)

### Berminat dalam pembangunan?

[Layari kod](https://plugins.trac.wordpress.org/browser/goodbye-syntax-highlighter/),
periksa [repositori SVN](https://plugins.svn.wordpress.org/goodbye-syntax-highlighter/),
atau langgani [log pembangunan](https://plugins.trac.wordpress.org/log/goodbye-syntax-highlighter/)
dengan [RSS](https://plugins.trac.wordpress.org/log/goodbye-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1.0

 * Initial release

#### 0.1.1

 * Modified output to use the HTML5 recommended syntax highlighting class names,
   e.g. `language-ruby`. For more information, see [the HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-code-element)

#### 0.1.2

 * Added conversion of GeSHi style code blocks

## Meta

 *  Version **0.1.2**
 *  Last updated **13 tahun lalu**
 *  Active installations **10+**
 *  WordPress version ** 3.1 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/goodbye-syntax-highlighter/)
 * Tags
 * [code](https://ms.wordpress.org/plugins/tags/code/)[Highlight](https://ms.wordpress.org/plugins/tags/highlight/)
   [highlight.js](https://ms.wordpress.org/plugins/tags/highlight-js/)[pre](https://ms.wordpress.org/plugins/tags/pre/)
   [syntax](https://ms.wordpress.org/plugins/tags/syntax/)
 *  [Paparan Lanjutan](https://ms.wordpress.org/plugins/goodbye-syntax-highlighter/advanced/)

## Ratings

 5 out of 5 stars.

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

[Your review](https://wordpress.org/support/plugin/goodbye-syntax-highlighter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/goodbye-syntax-highlighter/reviews/)

## Penyumbang

 *   [ dwhitevisoft ](https://profiles.wordpress.org/dwhitevisoft/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/goodbye-syntax-highlighter/)

## Derma

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.visoftinc.com/)