Closed (duplicate)
Project:
GeSHi Filter for syntax highlighting
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Sep 2011 at 12:57 UTC
Updated:
20 Feb 2014 at 00:18 UTC
Jump to comment: Most recent
Comments
Comment #1
soxofaan commentedCombining GeSHi filter with a rich-text/wysiwyg editor is a very hard and still unsolved problem.
some pointers:
#1271264: GeSHi Filter with Wysiwyg module for Drupal 7 and CKEditor
#290279: Rich text editor (WYSIWYG): Greater than sign > turns into >
#911366: Can't get it working with FCK editor
#1227394: Geshi not working with CKeditor or WYSIWYG
#283444: Incompatibility with FCKeditor
#723856: Support Geshi filter
#526416: Geshi Filter and FCK Editor
Comment #2
W32 commentedThank you for help.
http://drupal.org/sandbox/victor_gamedev.by/1270766 is very good solution for Wysiwyg module (TinyMCE editor) and GeSHi Filter.
Comment #3
wolf_22 commentedDid that work for you? If it did, let's try to come up with some succinct documentation (i.e. - clearly-written steps) on here so that others can follow your footsteps when seeking a solution.
Also, please make sure to include actual version numbers...
Comment #4
laceysanderson commentedI got TinyMCE WYSIWYG to work with GESHI filter using the following steps:
1. Download and install WYSIWYG module (7.x-2.1)
2. Download TinyMCE (3.5) into sites/all/libraries
3. Download and install WYSIWYG Filter module (7.x-1.6-rc2)
4.Created a new Text Format with the name "WYSIWYG Filter"
5. In WYSIWYG Profiles I set the editor for my "WYSIWYG Filter" text format as TinyMCE<
6. Left defaults for GESHI configuration (no line numbers)
Now to use the syntax highlighting in a textarea with WYSIWYG:
<pre><php>your code here</php></pre>wherever you need itThe pre tag keeps everything from ending on up on one line. I found removing all HTML correction from the TinyMCE WYSIWYG profile was necessary to keep it from removing my php tag and replacing it with p tag. Als the covert line breaks needed to be below GESHI in the filter processing order or I ended up with br tags throughout my php code.
Hope this helps someone since it took me awhile to get working!
~Lacey
Comment #5
wolf_22 commentedLacey, that's one of the best examples of how documentation *should* be across the board.
Thank you for making a difference. :.)
Comment #6
prexa commentedYes, this is the best example. Thanks a lot!
I also had trouble to make it working.
Comment #7
potassiumchloride commentedLacey, your documentation is much appreciated.
In my use case, I removed the 'Convert URLs into links' filter entirely from the filters list. Having it above GeSHi was causing problems. Some users may want to move this filter beneath the GeSHi filter.