Title: Goodbye Syntax Highlighter
Author: dwhitevisoft
Published: <strong>14 Agoosto, 2012</strong>
Last modified: 11 Febraayo, 2013

---

Raadi kaabayaal

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

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

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

 * [Faahfaahin](https://so.wordpress.org/plugins/goodbye-syntax-highlighter/#description)
 * [Dibu-eegisyo](https://so.wordpress.org/plugins/goodbye-syntax-highlighter/#reviews)
 *  [Rakibaad](https://so.wordpress.org/plugins/goodbye-syntax-highlighter/#installation)
 * [Horumarinta](https://so.wordpress.org/plugins/goodbye-syntax-highlighter/#developers)

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

## Sharraxaad

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.

## Rakibaad

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

## Dibu-eegisyo

Ma jiraan wax dibu-eegis ah oo ku saabsan kaabahan.

## Ka-qaybgalayaasha & Horumariyayaasha

“Goodbye Syntax Highlighter” waa softiweer il furan. Dadka soo socda ayaa wax ku
biiriyay kaabahan.

Ka-qaybgalayaasha

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

[Ku tarjun “Goodbye Syntax Highlighter” luqaddaada.](https://translate.wordpress.org/projects/wp-plugins/goodbye-syntax-highlighter)

### Ma xiisaynaysaa horumarinta?

[Baadh koodka](https://plugins.trac.wordpress.org/browser/goodbye-syntax-highlighter/),
fiiri [bakhaarka SVN](https://plugins.svn.wordpress.org/goodbye-syntax-highlighter/),
ama iska qor [diiwaanka horumarinta](https://plugins.trac.wordpress.org/log/goodbye-syntax-highlighter/)
adigoo adeegsanaya [RSS](https://plugins.trac.wordpress.org/log/goodbye-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss).

## Isbeddellada

#### 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 sano kahor**
 *  Active installations **10+**
 *  WordPress version ** 3.1 ama ka sareeya **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/goodbye-syntax-highlighter/)
 * Tags
 * [code](https://so.wordpress.org/plugins/tags/code/)[Highlight](https://so.wordpress.org/plugins/tags/highlight/)
   [highlight.js](https://so.wordpress.org/plugins/tags/highlight-js/)[pre](https://so.wordpress.org/plugins/tags/pre/)
   [syntax](https://so.wordpress.org/plugins/tags/syntax/)
 *  [Aragti Sare](https://so.wordpress.org/plugins/goodbye-syntax-highlighter/advanced/)

## Qiimeynta

 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/)

## Ka-qaybgalayaasha

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

## Taageero

Ma heysaa waxaad dhahdo? Caawimaad ma u baahan tahay?

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

## Ku deeq

Ma jeclaan lahayd inaad taageerto horumarinta kaabahan?

 [ Ugu deeq kaabahan ](http://www.visoftinc.com/)