Project:GeSHi Filter for syntax highlighting
Version:5.x-2.8
Component:Filtering
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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

#1

Category:bug report» support request

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:

  1. Footnotes Textile style (-9)
  2. PEAR Wiki Filter (0)
  3. GeSHi filter (2)
  4. Tablemanager filter (4)
  5. Zeilenumbruchkonverter (line break converter) (8)

/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;">&lt;%</span><span style="color: #006600; font-weight: bold">=</span>BreadCrumbs<span style="color: #006600; font-weight:bold">&#40;</span><span style="color: #006600; font-weight:bold">&#41;</span><span style="color: #0000ff; font-weight: bold;">%&gt;</span>

If it's heavier than PEAR Wiki Filter, it looks like this:

&lt;%=BreadCrumbs()%&gt;

(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

#4

Yeah your workaround does the job, but adds a div at the end. Any solutions to that ?

#5

Imho 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

#6

Status:active» closed (won't fix)

Seems like this is no longer relevant.

#7

Yupp. 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.

nobody click here