As I just mentioned in Re: XML-style readmore not being parsed (no kidding), don't put READMORE inside of CODE tags as it doesn't always prevent it from being magic (at least not currently). You'll probably think that it works because you'll be looking directly at the node which means that the READMORE isn't processed. Sucks, doesn't it?

You can write <code><read</code><code>more></code> (which I was able to display by writing <code><code><read</co</code><code>de><code>more></co</code><code>de></code>) if you really hate using &lt; or you can write <READ MORE> or <READ­MORE> (though the first will confuse newbies and the second has already confused you -- look closer) or <tt>&lt;readmore></tt> (if you want it to look like you used CODE tags) or any of several other things but not < READMORE > because, although it isn't processed as a READMORE tag, it is not escaped because it is considered an allowed HTML tag so that you can "view source" in order to see READMORE tags when looking directly at nodes (as theorbtwo mentioned).

Note that the chatterbox does not process READMORE so you can write <code><readmore></code> there. But you can also just write <readmore> and it will be escaped for you (so that it appears) because it isn't an allowed HTML tag in the chatterbox.

Update: This has now been fixed. You can put <readmore> inside of <code> tags. Thanks, demerphq. Now to update the site documentation as well...

                - tye (got all that?)

Thanks to theorbtwo for telling me that I had one of my <readmore>s unprotected inside of <code> tags. (:


In reply to Re^3: How to update a node? (readmore in code) by tye
in thread How to update a node? by ff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.