dleffler12's picture
Joined: 11/03/2011
Posts: 12
SyntaxHighlighter v2
A CKEditor plugin to help with the markup required to use the SyntaxHighlighter by Alex Gorbatchev http://alexgorbatchev.com/wiki/SyntaxHighlighter This plugin is for v2 of the highlighter



Licensed under the terms of any of the following licenses at your choice: GPL, LGPL and MPL.


1. Extract the contents of the file into the "plugins" folder of CKEditor.
2. In the CKEditor configuration file (config.js) add the following code:

    config.extraPlugins = 'syntaxhighlight';

config.toolbar = 
    [ 'Source', '-', 'Bold', 'Italic', 'syntaxhighlight' ]

3. You must also install Syntaxhighlighter v2.1.382 from http://alexgorbatchev.com/wiki/SyntaxHighlighter and reference it in your pages