I like this idea a lot, and while I understand the objections people have to invisible code, there is a simple way to get around it: Don't make it invisible.

As it stands right now, a <readmore> tag shows a link to an expanded version of the post (or rather, the post itself). What if the <hidden_code> tag shows up as a link reading something like
View full code...
I feel it is important that there is some indication that the code is there, rather than having it only show up when you follow the 'd/l code' link.

Of course, Monks should be discouraged from including too much hidden code. If you've got a twenty-module project that's getting b0rked by one sub, don't include the whole thing! :oP

LAI
:eof


In reply to Re: Enhancement: "hidden" code tag by LAI
in thread Enhancement: "hidden" code tag by jasonk

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.