Syntaxhighligher_XH facilitates improved presentation of code snippets in the content for users having JavaScript enabled. The actual work is done by Alex Gorbatchev's Syntaxhighlighter; Syntaxhighlighter_XH merely is meant to streamline the integration in CMSimple_XH. For some content editors there are plugins available, which make editing even more convenient.
Please do read this documentation, before you encounter any problems!
The current version is merely a draft. Everything might change, and there may be severe bugs and limitations as it is barely tested. It is a so called alpha version. Use with utmost caution!
Syntaxhighligher_XH is a plugin for CMSimple_XH. It requires a UTF-8 encoded version.
The installation is done as with many other CMSimple_XH plugins. See the CMSimple_XH wiki for further details.
The plugin's configuration is done as with many other CMSimple_XH plugins in the website's back-end. Select "Syntaxhighlighter" from "Plugins".
You can change the default settings of Syntaxhighlighter_XH in "Config". Hints for the options will be displayed when hovering over the help icons with your mouse.
Localization is done in "Language". You can translate the character strings to your own language or customize them according to your needs.
The look of Syntaxhighlighter_XH can be customized in "Stylesheet".
Add code you like to be presented with syntax highlighting to your pages by enclosing it in a "pre" element with a class as described in Syntaxhighlighter's manual. That's it.
For tinyMCE it's even simpler: just press the "Insert code using Syntaxhighlighter" button, and enter the code and the desired settings. If you want to edit this code later, you have to choose "SyntaxHL - Edit" from the context menu.
For CKEditor inserting and editing the code can be done by pressing the "Add or update a code snippet" button, where you can edit the code and the settings.
tinyMCE may not work at all when CMSimple_XH is set to any other language than English. As a workaround just make a copy of plugins/tinymce/tiny_mce/plugins/syntaxhl/langs/en.js and call it according to your language (e.g. de.js for German).
Syntaxhighlighter_XH is licensed under GPLv3.
© 2012-2013 Christoph M. Becker
This plugin was inspired by pmolik.
Syntaxhighlighter_XH is powered by Alex Gorbatchev's Syntaxhighlighter; many thanks for releasing this great tool under LGPL.
The tinyMCE plugin is written by Richard Grundy. The CKEditor plugin is written by Daniel Brain. Many thanks for releasing both plugins under LGPL.
The plugin icon was designed by YellowIcon. Many thanks for publishing this icon under GPL.
This plugin uses free applications icons from Aha-Soft. Many thanks for making these icons freely available.
And last but not least many thanks to Peter Harteg, the "father" of CMSimple, and all developers of CMSimple_XH, without whom this amazing CMS wouldn't exist.