By alexandreracine on
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 "code" 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
Input filters
Have you looked into your input filters setting?
www.ZuNOB.com
Yes, and "code" is
Yes, and "code" is allowed.
Alexandre Racine
www.alexandreracine.com - mon site perso
www.salsamontreal.com La référence salsa à Montréal
Project
http://drupal.org/project/codefilter
Thanks for that. It does
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
On a fresh install of 6.8,
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?
Thanks, it is probably my
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
Somebody please help me
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.