The trick still works. It is just your contrived example that doesn't "work" for some users. Put a newline inside of your CODE block so that it will work for anybody (it would make little sense to use this trick on such a tiny chunk of code anyway).

Also, you should make your link using a URL that doesn't hardcode the hostname. You used "[http://www.perlmonks.com/?displaytype=displaycode;node_id=729693|...]" when you should have used "[href://?displaytype=displaycode;node_id=729693|...]". That would make your link work for me like the "[d/l]" and "Download code" links already work for me. Your link isn't using the hostname that my cookie is for so the 'download' is done anonymously when I click on it. And Anonymous Monk has the default setting which makes your contrived no-newline example not work.

There used to be a setting for whether or not you wish to ignore no-newline (in-line) code spans when trying to download code from a node. The default is to ignore such. I've verified that there is, in fact, currently no way to toggle this setting. I will find where the setting used to be exposed and restore access to it.

I had previously turned on the "include in-line code in downloads" for myself which is why the real "download" links on your node work for me.

- tye        


In reply to Re^2: spoiler tag "abuse" (<!--<c>) by tye
in thread spoiler tag "abuse" by BrowserUk

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.