Download & Extend

Results differ between input formats

Project:Code Filter
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I entered a PHP snippet between code tags on a "Filtered HTML" page and the output did format with code tags, but not the "codeblock" div tag. I changed the format to "Full HTML" (with no other changes) and it added the "codeblock" div.

Why should it matter which input format I'm using?

Comments

#1

When Codefilter isn't turned on for an input format, then < code> works as it does in normal HTML (eg, monospaced font). When Codefilter is turned on, then < code> will add the codeblock div.
Is Codefilter turned on for both of the input formats you tested?

#2

Full HTML: (default)

  • URL filter
  • Code filter
  • PHP evaluator
  • Glossary filter

Filtered HTML:

  • URL filter
  • Code filter
  • HTML filter
  • Line break converter
  • Glossary filter