Yep, nothing is perfect. Readmore has several problems: You get 'spoiled' without warning if you select the node from Newest Nodes, it is slow and painful to reveal multiple spoilers in a thread full of them, some people have 'readmore' disabled, ...

Note that putting CODE tags inside of an HTML comment will cause the 'download code' link to appear automatically, so you don't *have to* put in your own link. But that solution for spoilers isn't perfect either.

I recently discussed this and realized that the black-on-black or white-on-white method doesn't work for everyone. So I think we should just support <spoiler> and </spoiler> that would just get replaced with the *viewer's* choice of spoiler method. In user settings you could pick between a few methods including at least HTML comments, 'readmore' tags, black-on-black, or act like readmore but provide a link to the node with ;spoil=1 or such added to the URL.

- tye        


In reply to Re^2: formatting spoilers (not perfect) by tye
in thread formatting spoilers by ysth

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.