I'd replace the table with "<p>checkbox, d/l link<br />first few lines of code...last few lines of code</p>". Code blocks tend to be large and wide and the table just makes the wideness worse and separating check boxes with huge chunks of code doesn't seem like a great interface...

If you want that interface, just put "download this" links after each code block in the original node. Yes, I'd make such links the default with a user setting to turn them off. That way, everyone knows about the capability but those who don't like it can avoid it.

I'd default to not showing inline code chunks. The times when downloading such is useful are certainly the exception. I wouldn't mind if the only way to get the inline chunks is to "download all", but providing a link "show in-line code chunks" would be fine too.

- tye        


In reply to Re: New displaytype 'selectcode' (concise) by tye
in thread New displaytype 'selectcode' by demerphq

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.