So here on drupal.org I can use the -code- tag like this

This is inside the code tag

Looking at the source code, I see this :

<div class="content">
    <p>This is a test.<br />
<div class="codeblock"><code>This is inside a &quot;code&quot; tag

Looking on my Drupal 6 website, doing the same thing gives me this in the source code of the page

<div class="content clearfix">
        <p>test code</p>
<p>before</p>
<p>inside the code tag</p>
<p>after</p>

Can someone confirm this please? Maybe I am tired too I don't know.

Comments

MidGe48’s picture

Have you looked into your input filters setting?

www.ZuNOB.com

alexandreracine’s picture

yelvington’s picture

alexandreracine’s picture

Thanks for that. It does work except for the indentation in the "code" tag (but the php does keep it). Nevertheless, why is this not in drupal if it is in the default choices of the first input filters?

Alexandre Racine

www.alexandreracine.com - mon site perso
www.salsamontreal.com La référence salsa à Montréal

dnuss’s picture

On a fresh install of 6.8, the use of the -code- tag in the "Filtered HTML" Input filter does preserve the desired -code- HTML tags output to the browser. So it is working "as designed".

This leads me to suspect that perhaps you have added another input filter or re-arranged the order of the input filters for "Filtered HTML" input format thus losing the -code- tags.

Also, what theme are you using?

alexandreracine’s picture

Thanks, it is probably my filters. I was trying to put some html, from an Excel sheet, what a nightmare. The only way I found to put it online is to use the "full html filter", export the file as strict XHTML (in open office calc), and cut to almost the minimum of html.

The result is here : http://www.salsamontreal.com/top_30_salsa_2008_de_dj_jean_nonez_2009_01_04

Alexandre Racine

www.alexandreracine.com - mon site perso
www.salsamontreal.com La référence salsa à Montréal

drecute’s picture

Unfortunately, even after enabling the codefilter module, the <code> tag still comes out in it's literal form(<code>). I don't know what to do and I don't know what I'm missing. I don't know whether this is an fckeditor problem or the input format problem or a module is messing things up for me. Also, when I click on the fckeditor source button, and I manually enter the <code> tag myself, it gets removed automatically.

Somebody please help me.