link to project page.
Direct link to git repository:
git clone http://git.drupal.org/sandbox/victor_gamedev.by/1270766.git wysiwyg_geshi_plugin
ABOUT
Allows to use GeSHi Filter with Wysiwyg module for Drupal 7 and CKEditor.
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]
INFO
Based on the example in this article.
Comments
Comment #0.0
victor@gamedev.by commentedchange install
Comment #0.1
victor@gamedev.by commentedchange
Comment #1
victor@gamedev.by commentedawaiting response from a reviewer for 3 weeks
Comment #2
jthorson commentedVictor:
Only one module application is necessary, as successful completion results in the 'Promote Full Projects' permission; which allows you to publish your other projects.
Can you please indicate which of your applications you would like us to review, and close the other application as a duplicate?
http://drupal.org/node/1271252 - Wysiwyg Smileys Plugin
http://drupal.org/node/1270830 - Wysiwyg Geshi Plugin
In either case, you should also:
i) provide a few comments regarding other similar modules, and how yours differs from them ... just to show that you've performed a search and are not simply duplicating the functionality of an existing module that you may not have been aware of. ;)
ii) Remove the 'licence.txt' files, as these will be added automatically by Drupal's packaging system
iii) Remove the /$Id tags from all files. This is a leftover from the CVS days, but is no longer required now that we are using Git.
iv) Run the projects through the Coder module (http://drupal.org/projects/coder) and fix up any other issues it flags.
Thanks!
Comment #3
jthorson commentedThis thread has been idle, in the 'needs work' state with no activity for several months. Therefore, I am assuming that you are no longer persuing this application, and marking it as closed (won't fix).
If this is incorrect, and you are still pursuing this application, then please feel free to re-open the thred and set the issue status to "needs work" or "needs review", depending on the current status of your code.
As I mentioned previously, successful completion of the application process results in the applicant being granted the 'Create Full Projects' permission, so please only re-open one of your projects should you choose to re-engage your project applications.
Comment #3.0
jthorson commentedgit link