Title: How to display code
Last modified: August 18, 2016

---

# How to display code

 *  [xhan](https://wordpress.org/support/users/xhan/)
 * (@xhan)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/how-to-display-code/)
 * 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](http://www.emesis.net)
 * whats going wrong?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 12 months ago](https://wordpress.org/support/topic/how-to-display-code/#post-222468)
 * Which of the plugins / techniques you found when searching didn’t work ?
 *  [m0n5t3r](https://wordpress.org/support/users/m0n5t3r/)
 * (@m0n5t3r)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/how-to-display-code/#post-222583)
 * um, `<code><pre> the_code</pre></code>`? the_code should be html escaped, ofc;
   or you may drop <pre> and use nl2br…
 *  [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/how-to-display-code/#post-222584)
 * I think you will also need remember to use &lt; for < and &gt; for >

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to display code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/how-to-display-code/#post-222584)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
