HTML Code in Post (11 posts)

  1. MattRead
    Posted 12 years ago #

    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.

  2. Anonymous
    Posted 12 years ago #

    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.
    Nettie xox

  3. Mark (podz)
    Support Maven
    Posted 12 years ago #

    I use the WP widget:
    but a plugin would be cool.

  4. ringmaster
    Posted 12 years ago #

    Here you go, "Code Filter":
    Where's my picture?

  5. Mark (podz)
    Support Maven
    Posted 12 years ago #

    One thing to note :
    Break your code up into smaller lines, or it will continue to the right !

  6. MattRead
    Posted 12 years ago #

    That Plugin is awsome. That's exactly what I wanted, and I do mean exactly.
    Oh and here's your picture:
    "It's a wonderful day in the neighboorhood...."

  7. ringmaster
    Posted 12 years ago #

    Sweet. :)

  8. Zarniwoop
    Posted 12 years ago #

    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.

  9. MattRead
    Posted 12 years ago #

    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.


    Plain Text

    The above will display "Plain Text" and the middle "code" tags as preformatted text <pre>

  10. ringmaster
    Posted 12 years ago #

    You can fix this by putting a "U" after the "ims" in the regular expression. The expression would then read like this:

    The "U" makes the expression ungreedy, so it only looks for the first matching end tag rather than the last.

  11. loauc
    Posted 11 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.