GeSHi Filter does not work with PEAR Wiki Filter
asb - October 19, 2008 - 22:39
| Project: | GeSHi Filter for syntax highlighting |
| Version: | 5.x-2.8 |
| Component: | Filtering |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
GeSHi Filter does not work with PEAR Wiki Filter at all. Is there any solution or workaround available for this?
Thanks & greetings, -asb

#1
I can't experiment with the PEAR wiki filter for the moment.
Could you provide more information about what doesn't work?
What filter orders did you try (GeSHi before PEAR Wiki or after)?
Any other filters in the output format?
#2
Hi Stefaan,
thanks for the quick reply and sorry for not being more concise; at least in the PEAR wiki filter issue queue were some discussions months ago (e.g. about Interference with code block).
For me, GeSHi nodes work fine (so the installation should be correct), the Filter does not work at all in nodes with input format based on PEAR Wiki Filter with Mediawiki tags (default input format on my sites). This input format uses the following filters:
/admin/settings/geshifilter reports: "GeSHi library version 1.0.8 detected", and "Filter conflicts" claims: "No known filter conflicts were detected". "GeSHi filter tags and delimiters" is set to "code blockcode", "Tag style" is "". The relevant Languages/coding styles are enabled, tags are not being used.
In my experiments, I shifted GeSHi filter through all possible positions above and below PEAR Wiki Filter (0). Example:
<%=BreadCrumbs()%>Basically, if it's lighter than PEAR Wiki Filter, it looks more or less like this:
<span class="geshifilter"><code class="geshifilter-asp"><span style="color: #0000ff; font-weight: bold;"><%</span><span style="color: #006600; font-weight: bold">=</span>BreadCrumbs<span style="color: #006600; font-weight:bold">(</span><span style="color: #006600; font-weight:bold">)</span><span style="color: #0000ff; font-weight: bold;">%></span>If it's heavier than PEAR Wiki Filter, it looks like this:
<%=BreadCrumbs()%>(Writing this with GeSHi filter enabled and syntax like < code > or < blockcode language="asp" > or < blockcode >). I also played around with some settings like Tag style "[foo]", but that didn't help either.
If I can provide any help with this, please drop me a line.
Thanks again & greetings, -asb
#3
Here's my workaround:
http://www.workalone.co.uk/node/129