Hi,
GeSHi Filter does not work with PEAR Wiki Filter at all. Is there any solution or workaround available for this?
Thanks & greetings, -asb
Hi,
GeSHi Filter does not work with PEAR Wiki Filter at all. Is there any solution or workaround available for this?
Thanks & greetings, -asb
Comments
Comment #1
soxofaan commentedI 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?
Comment #2
asb commentedHi 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
Comment #3
boldfish commentedHere's my workaround:
http://www.workalone.co.uk/node/129
Comment #4
nileshgr commentedYeah your workaround does the job, but adds a div at the end. Any solutions to that ?
Comment #5
asb commentedImho PEAR Wiki Filter is a dead end, it's as dead as it can get. mediawiki_filter plays nicely together with GeSHi Filter, you might want to give it a try (PEAR Wiki Filter can be easily exchanged with 'mediawiki_filter'). GeSHi plus 'mediawiki_filter' gives a clean output like this or that.
Greetings, -asb
Comment #6
boombatower commentedSeems like this is no longer relevant.
Comment #7
asb commentedYupp. We're currently trying to create an official d.o project for mediawiki_filter which would probably be the successor for the de-facto unmaintained PEAR Wiki Filter anyway.