Filter ordering for GeSHi filter

Filter ordering for GeSHi filter

I use the GeSHi filter for syntax highlighting on my site. The filter ordering is

  1. URL filter
  2. HTML filter
  3. GeSHi filter
  4. Line break converter
  5. HTML corrector

Explanation: the GeSHi module requires that the GeSHi filter is after the HTML filter so that markup generated by the GeSHi library won't be filtered out. On the other hand, the line break converter should come after the GeSHi filter, because the GeSHi filter will generate a <div> wrapper, the line break converter should recognize this block level element, and not wrap another <p> as it would inline texts. XHTML strict does not allow a <div> inside a <p>.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

To prevent automated spam submissions leave this field empty.