Title: Textarea and code tag problems with WordPress
Last modified: August 19, 2016

---

# Textarea and code tag problems with WordPress

 *  [ninjapoo](https://wordpress.org/support/users/ninjapoo/)
 * (@ninjapoo)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/textarea-and-code-tag-problems-with-wordpress/)
 * Well, I tried inserting some viewable coding into one of my pages, and it just
   wouldn’t work.
 * **`<textarea>` tag**
    Inside the `<textarea>` tags, I attempted to insert the
   html opening tag and closing tag with an enter space in between:
 *     ```
       <textarea>
       <html>
       </html>
       </textarea>
       ```
   
 * But, instead of it showing up as `<html> [enter] </html>`, it showed up (once
   I clicked “View Page”) as:
 *     ```
       <html><br />
       </html>
       ```
   
 * I understand that I added breaks intentionally, but I didn’t want it to show 
   up! If I were to use an HTML editor (like notepad) and I did that, it would never
   show up. I understand that WordPress is purposely doing it, and I was wondering
   how to avoid it. I like having breaks in between my opening and closing tags (
   for tutorials). It provides the reader with a better visual. Can you please help
   me out?
 * **`<code>` tag**
    Now, I have another problem: whenever I tried to add the `<
   code> </code>` tag, with HTML in between, into WordPress’s “HTML editor”, it 
   wouldn’t show up on my page (after I clicked “View Page”). Instead, it would 
   leave a space where the `code` was suppose to be:
 * HTML EDITOR:
    . . . you must type in `<code><html> </html></code>` in the beginning...
 * VIEW PAGE:
    . . . you must type in in the beginning . . .
 * Get me? What should I do to fix this problem???
 * Thank you! 🙂

Viewing 1 replies (of 1 total)

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/textarea-and-code-tag-problems-with-wordpress/#post-1380121)
 * WordPress isn’t designed to accept code for display on the page as is, the filters
   in place are too restrictive for that.
 * In order to display code there are syntax highlighting plugins available that
   handle the display of code without the issue of code be parsed instead of simply
   showing on the page as you’d expect.
 * Check some of these out, though be aware some do have their limitations and it
   may be a matter of trying them out to see which suits you best.
    [http://wordpress.org/extend/plugins/search.php?q=syntax](http://wordpress.org/extend/plugins/search.php?q=syntax)

Viewing 1 replies (of 1 total)

The topic ‘Textarea and code tag problems with WordPress’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [html editor](https://wordpress.org/support/topic-tag/html-editor/)
 * [textarea](https://wordpress.org/support/topic-tag/textarea/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/textarea-and-code-tag-problems-with-wordpress/#post-1380121)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
