Results differ between input formats

NancyDru - December 1, 2007 - 15:42
Project:Code Filter
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

corsix - December 1, 2007 - 20:30

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

NancyDru - December 1, 2007 - 22:14

Full HTML: (default)

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

Filtered HTML:

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

Drupal is a registered trademark of Dries Buytaert.