Important: Development of this module is halted until either:
- The WYSIWYG module no longer causes this major usability regression: .
- Another WYSIWYG editor module provides an API that can be accessed by this module.
Please see comment #5 of for more details. As of July 2011, neither standard has been met.
This module's intent is to allow users of the WYSIWYG module and the GeSHi Filter for syntax highlighting module to embed code through CKEditor without it being mangled. It is based on the original work of Peter Petrik.
- WYSIWYG 2.x-dev module with CKEditor installed (6.x-2.0 does not support CKEditor)
- GeSHi Filter for syntax highlighting module
GeSHi filter hack
You must hack a GeSHi filter file. I'm talking about the code you download separately form the Drupal GeSHi module.
Under sites/[sitename or all]/modules/geshifilter/geshi, open geshi.php for editing. Add the below code at line 2046 (a blank line in GeSHi 22.214.171.124) or after
// Replace all newlines to a common form:
// Replace all newlines to a common form.
$code = str_replace(">", ">", $code);
$code = str_replace("<", "<", $code);
$code = str_replace("&", "&", $code);
$code = str_replace("'", "'", $code);
$code = str_replace(""", """, $code);
After you install...
You still must enable the buttons:
- Go to admin/settings/wysiwyg (Administer > Site configuration > Wysiwyg).
- Click Edit next to an input format where you want to use GeSHi.
- Under Buttons and plugins, select the Geshi buttons you want to see.