Closed (fixed)
Project:
GeSHi Filter for syntax highlighting
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jan 2008 at 17:13 UTC
Updated:
14 Feb 2008 at 10:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
soxofaan commentedI can't reproduce with HTMLfilter + LineBreakConverter + GeSHi.
I didn't try with BBCode yet, maybe that's the culprit?
Which type of GeSHi tags do you use? angle brackets (<foo>) or square brackets ([foo])?
Can you give a screenshot or a source view of the gray mess?
Comment #2
account-deletion-needed commentedI disabled BBCode but the problem remains. Using only [foo] tags.
In the attachment is a screenshot of HTML filter on and HTML filter off.
Here's the code GeSHi outputs when HTML filter is on:
<span class="geshifilter"><code class="geshifilter-php">&<span style="color: #808080; font-style: italic;">#10;&lt;div class=&quot;links&quot;&gt;&#10; &lt;?php print $links ?&gt;&#10; &lt;?php if (((strcasecmp($node-&gt;type, &#039;book&#039;) == 0) || (strcasecmp($node-&gt;type, &#039;forum&#039;) == 0) || (strcasecmp($node-&gt;type, &#039;story&#039;) == 0))&#10; &amp;&amp; (strcasecmp(drupal_get_path_alias($_GET[&#039;q&#039;]), &#039;node&#039;) != 0)): ?&gt;&#10; &lt;script type=&quot;text/javascript&quot;&gt;&#10; addthis_url = location.href; &#10; addthis_title = document.title; &#10; addthis_pub = &#039;tagbytag&#039;; &#10; &lt;/script&gt;&#10; &lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.addthis.com/js/addthis_widget.php?v=12&quot; &gt;&lt;/script&gt;&#10; &lt;?php endif; ?&gt;&#10; &lt;/div&gt;&#10;</span>And when it's off:
Comment #3
soxofaan commentedI found the problem: you've probably set up the html filter to "Escape all tags" instead of "Strip disallowed tags".
Is there any particular reason for that?
I don't think there is a clean way of making GeSHi filter coexist with the tag escaping of html filter.
Moreover I think it doesn't make much sense to have tag escaping when you already have geshi filter, which is more powerful than the simple tag escaping.
I should add detection for this conflict to the geshi filter conflict page.
Comment #4
account-deletion-needed commentedThanks that solved the problem!
Comment #5
account-deletion-needed commentedComment #6
soxofaan commentedsee #3
Comment #7
soxofaan commentedfixed for 5.x-2.x-dev by http://drupal.org/cvs?commit=98566
Comment #8
soxofaan commentedfixed in HEAD by http://drupal.org/cvs?commit=98569
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.