Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
ABOUT
Allows to use GeSHi Filter with Wysiwyg module for Drupal 7 and CKEditor.
Need help to port it as a full module.
Tested with:
Drupal 7.17
GeSHi 1.0.8.11
ckeditor 3.6.5
Wysiwyg 7.x-2.2
GeSHi Filter 7.x-1.1
wysiwyg_filter 7.x-1.6-rc2
INSTALLATION
- Install as usual "Wysiwyg" from http://drupal.org/project/wysiwyg
- Install as usual "GeSHi Filter" from http://drupal.org/project/geshifilter
- Download CKEditor library and copy folder "ckeditor" from archive to "sites/all/libraries"
- Download GeSHi library version of the branch 1.0.x and copy folder "geshi" from archive to "sites/all/libraries"
- Install as usual "Wysiwyg Geshi Plugin"
- Configure "Wysiwyg" module via http://YOUR_SITE/admin/settings/wysiwyg for needed "Input format". Add "GeSHi" button to list.
- Configure "GeSHi Filter" module via http://YOUR_SITE/admin/config/content/formats/geshifilter for needed "Input format". Add "pre" tag.
- In file /sites/all/modules/geshifilter/geshifilter.pages.inc add this line:
@@ -248,6 +248,8 @@ // Undo linebreak and escaping from preparation phase. $source_code = decode_entities($source_code); + $source_code = htmlspecialchars_decode($source_code, ENT_QUOTES); // Initialize to default settings. $lang = variable_get('geshifilter_default_highlighting', GESHIFILTER_DEFAULT_PLAINTEXT);
- If you use WYSIWYG Filter enable this tag:
pre[start|fancy|type|linenumbers<off?fancy?normal|title]
- ???????
- PROFIT :)
INFO
Based on the example in this article.
Project information
- Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Content Display, Content Editing Experience
- Created by victor@gamedev.by on , updated