Title: SyntaxHighlighter CKEditor Button
Author: solagirl
Published: <strong>September 7, 2012</strong>
Last modified: April 21, 2014

---

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/syntaxhighlighter-ckeditor-button.svg)

# SyntaxHighlighter CKEditor Button

 By [solagirl](https://profiles.wordpress.org/solagirl/)

[Download](https://downloads.wordpress.org/plugin/syntaxhighlighter-ckeditor-button.1.2.2.zip)

 * [Details](https://pcd.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#installation)
 * [Development](https://pcd.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/#developers)

 [Support](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/)

## Description

This plugin provides an additional code button for WordPress CKEditor so that you
can use syntaxhighlighter with CKEditor.

[CKEditor For WordPress](https://wordpress.org/extend/plugins/ckeditor-for-wordpress/)
plugin replaces the default WordPress editor with CKEditor, while [Auto SyntaxHighlighter](https://wordpress.org/extend/plugins/auto-syntaxhighlighter/)
plugin intergrates alexgorbatchev SyntaxHighlighter JavaScript package into WordPress
but doesn’t provide a code button for CKEditor. This is why I created the plugin.

If you opt not to install Auto SyntaxHighlighter plugin, then your code will simply
be wrapped with pre tag.

Auto SyntaxHighlighter is not the only choice, there are plenty of plugins out there
that integrate Alex Gorbatchev’s SyntaxHighlighter into WordPress, choose as you
like.

Note: If you encounter any problem after upgrading please clear your browser’s cache.

## Screenshots

 * [[
 * The code button in CKEditor
 * [[
 * The user interface for adding code
 * [[
 * Syntaxhighlighter in action
 * [[
 * What it looks like when a custom editor style is defined within CKEditor’s advanced
   settings.

## Installation

 1. Upload this plugin to the ‘/wp-content/plugins/’ directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Make sure you have installed and activated CKEditor For WordPress and Auto SyntaxHighlighter
    plugin.
 4. To give the pre tag a special style in the visual editor, go to “CKEditor->Advanced
    Settings”, set “Editor CSS” to be Define css, set “CSS path” to be **http://yourdomain.
    com/wp-content/plugins/syntaxhighlighter-ckeditor-button/ckeditor.css****. Please
    replace ****yourdomain.com** with the real path of your “WordPress Address” defined
    in “Setings->General”.
 5. Save the settings and enjoy.

Note: If you encounter any problem after upgrading please clear your browser’s cache.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“SyntaxHighlighter CKEditor Button” is open source software. The following people
have contributed to this plugin.

Contributors

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

[Translate “SyntaxHighlighter CKEditor Button” into your language.](https://translate.wordpress.org/projects/wp-plugins/syntaxhighlighter-ckeditor-button)

### Interested in development?

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

## Changelog

#### 1.2.2

 * Put all ckeditor’s default style into ckeditor.css

#### 1.2.1

 * Make it compatible with the latest CKEditor For WordPress 4.0 plugin
 * Code button is moved to the insert toolbar

#### 1.2

 * Compatible with CKEditor For WordPress 4.0 and WordPress 3.5
 * Fix a bug when deactivating the plugin.

#### 1.1

 * Imporove the admin notification method, using wp pointer
 * Automatically remove the code button from ckeditor’s settings upon deactivation.

## Meta

 *  Version **1.2.2**
 *  Last updated **12 years ago**
 *  Active installations **80+**
 *  WordPress version ** 3.3 or higher **
 *  Tested up to **3.9.40**
 *  Language
 * [English (US)](https://wordpress.org/plugins/syntaxhighlighter-ckeditor-button/)
 * Tags
 * [ckeditor](https://pcd.wordpress.org/plugins/tags/ckeditor/)[SyntaxHighlighter](https://pcd.wordpress.org/plugins/tags/syntaxhighlighter/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/syntaxhighlighter-ckeditor-button/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/syntaxhighlighter-ckeditor-button/)