Title: HTML Code in Post
Last modified: August 18, 2016

---

# HTML Code in Post

 *  [mattread](https://wordpress.org/support/users/mattread/)
 * (@mattread)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/)
 * Does anyone know if there is a hack to DISPLAY HTML code in the post content,
   something like `backticks` on this forum??
    If not, does anyone feel like writing
   one? I will give you autographed picture of Fred if you write one!! If that’s
   not enough motivation, then I don’t know what is. 🙂 🙂 I run the tweaks/software
   section of my site with wordpress and put a lot of HTML in the posts, and currently
   have to convert everything to Special Characters. [http://www.mattread.com/tweaks/](http://www.mattread.com/tweaks/)

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

 *  Anonymous
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61138)
 * How about html or scripts in the sidebar.
    I want to run a countdown code and
   other stuff, but I don’t know how to include it in my sidebar… Any help would
   be appreciated. Thanks Nettie xox [http://keanuholic.com](http://keanuholic.com)
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61139)
 * I use the WP widget:
    [http://resources.wordpress.org/tools/encode/](http://resources.wordpress.org/tools/encode/)
   but a plugin would be cool.
 *  [ringmaster](https://wordpress.org/support/users/ringmaster/)
 * (@ringmaster)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61143)
 * Here you go, “Code Filter”:
    [http://www.asymptomatic.net/wp-hacks/](http://www.asymptomatic.net/wp-hacks/)
   Where’s my picture?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61148)
 * One thing to note :
    Break your code up into smaller lines, or it will continue
   to the right !
 *  Thread Starter [mattread](https://wordpress.org/support/users/mattread/)
 * (@mattread)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61151)
 * That Plugin is awsome. That’s exactly what I wanted, and I do mean exactly.
    
   Oh and here’s your picture: [http://www.mattread.com/i/mfr.jpg](http://www.mattread.com/i/mfr.jpg)“
   It’s a wonderful day in the neighboorhood….”
 *  [ringmaster](https://wordpress.org/support/users/ringmaster/)
 * (@ringmaster)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61153)
 * Sweet. 🙂
 *  [Zarniwoop](https://wordpress.org/support/users/zarniwoop/)
 * (@zarniwoop)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61181)
 * Maybe you can also try out the Markdown plugin (included with WP) which has support
   for displaying code and doesn’t even need the -tags. At the other side, it is
   much more than that and for this cannot be use in conjunction with Textile because
   they do the same things, but in different ways.
 *  Thread Starter [mattread](https://wordpress.org/support/users/mattread/)
 * (@mattread)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61361)
 * I have a problem with the Plugin. if I have more than on instance of the “code”
   tags then it displays the middle “code” tags as special characters.
    ` <html>
   </>  Plain Text  The above will display “Plain Text” and the middle “code” tags
   as preformatted text <pre>
 *  [ringmaster](https://wordpress.org/support/users/ringmaster/)
 * (@ringmaster)
 * [22 years ago](https://wordpress.org/support/topic/html-code-in-post/#post-61399)
 * You can fix this by putting a “U” after the “ims” in the regular expression. 
   The expression would then read like this:
    `'|<code([^>]*)>(.*)`|imsU' The “U”
   makes the expression ungreedy, so it only looks for the first matching end tag
   rather than the last.
 *  [loauc](https://wordpress.org/support/users/loauc/)
 * (@loauc)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/html-code-in-post/#post-61789)
 * and how can I put code in the comments? I’ve tried using the code tag but it 
   doesn’t work. Would a pre tag work?

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

The topic ‘HTML Code in Post’ is closed to new replies.

 * 10 replies
 * 6 participants
 * Last reply from: [loauc](https://wordpress.org/support/users/loauc/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/html-code-in-post/#post-61789)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
