Title: Goodbye Syntax Highlighter
Author: dwhitevisoft
Published: <strong>14. August 2012</strong>
Last modified: 11. Februar 2013

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/goodbye-syntax-highlighter.svg)

# Goodbye Syntax Highlighter

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

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

 * [Details](https://de.wordpress.org/plugins/goodbye-syntax-highlighter/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/goodbye-syntax-highlighter/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/goodbye-syntax-highlighter/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/goodbye-syntax-highlighter/#developers)

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

## Beschreibung

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

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Goodbye Syntax Highlighter“ ist Open-Source-Software. Folgende Menschen haben an
diesem Plugin mitgewirkt:

Mitwirkende

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

[Übersetze „Goodbye Syntax Highlighter“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/goodbye-syntax-highlighter)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/goodbye-syntax-highlighter/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/goodbye-syntax-highlighter/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/goodbye-syntax-highlighter/)
per [RSS](https://plugins.trac.wordpress.org/log/goodbye-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 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**
 *  Zuletzt aktualisiert **vor 14 Jahren**
 *  Aktive Installationen **10+**
 *  WordPress-Version ** 3.1 oder höher **
 *  Getestet bis **3.5.2**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/goodbye-syntax-highlighter/)
 * Schlagwörter
 * [code](https://de.wordpress.org/plugins/tags/code/)[Highlight](https://de.wordpress.org/plugins/tags/highlight/)
   [highlight.js](https://de.wordpress.org/plugins/tags/highlight-js/)[pre](https://de.wordpress.org/plugins/tags/pre/)
   [syntax](https://de.wordpress.org/plugins/tags/syntax/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/goodbye-syntax-highlighter/advanced/)

## Bewertungen

 5 von 5 Sternen.

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

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

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/goodbye-syntax-highlighter/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

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

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://www.visoftinc.com/)