WordPress.org

Ready to get started?Download WordPress

Forums

How to display code (4 posts)

  1. xhan
    Member
    Posted 9 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 9 years ago #

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

  3. m0n5t3r
    Member
    Posted 9 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
    Member
    Posted 9 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

Tags

No tags yet.