The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to display code (4 posts)

  1. xhan
    Posted 11 years ago #

    how do you display code in a page?

    I've tried:
    <textarea> and I get </br> wherever theres a space in the writign on the page.

    <pre> and <cite> and neither show up!

    the domains http://www.emesis.net

    whats going wrong?

  2. Mark (podz)
    Support Maven
    Posted 11 years ago #

    Which of the plugins / techniques you found when searching didn't work ?

  3. m0n5t3r
    Posted 11 years ago #

    um, <code><pre> the_code</pre></code>? the_code should be html escaped, ofc; or you may drop <pre> and use nl2br...

  4. Ajay
    Posted 11 years ago #

    I think you will also need remember to use &lt; for < and &gt; for >

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.