<code></code> not working?

Events happening in the community are now at Drupal community events on www.drupal.org.
zeromiledesign's picture

My HTML code is being rendered even within tags. I searched the documentation and the Googley and found only references to how to use the code tags. I Copy/Pasted the examples and still no worky. Tried HTML and Filtered HTML. Plain Text shows everything, tags included. Anyone else having a similar issue.

Please forgive me if this is the wrong place for this question.

Cheers,
Jason

Comments

haha, the < code > tags were

zeromiledesign's picture

haha, the < code > tags were rendered out of my submission.

I'm not sure what your issue

kepford's picture

I'm not sure what your issue is. Are you trying to display HTML markup on a page like this?

<h3>Heading</h3>
<p>This is a paragraph.</p>

< code > tags not working

zeromiledesign's picture

Yes! But when I wrap it in < code > or < pre > tags the HTML inside renders as HTML. I've adjusted the html/filtered html profiles to not do any html cleanup or auto-link conversion. Still no worky. It's not super critical, I was just checking to see if anyone else was having this issue. It's on my local drupal7 install. Maybe I can bring my laptop to the next meeting and show you.

Here are some screenshots illustrating mah error http://zeromiledesign.com/wordpress/2011/codepre-issue-with-drupal-7/

Thanks for your response :)

Hmm. Now I see. It's not a

kepford's picture

Hmm. Now I see. It's not a Drupal 7 bug or even a bug. The input filters (text filters in D7) are filtering/reading the tags within your code tags. Take a look at the CodeFilter module. That should get you what you need.

FYI. You will need to enable

kepford's picture

FYI. You will need to enable that module and then go to your text formats and enable it on any of the formats you want to be able to paste code.

codefilter

zeromiledesign's picture

It worked! You are a genius!! Thanks so much :)

Fresno

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: