in reply to spoiler tag "abuse"

"short of that occasionally resorted to by tye ..."

There used to be a way to hide your code tags inside HTML comments and be able to not only view the contents of the code tag view the contents of the code tag but also have the link to view them autogenerated. Now the link will be auto generated but a message saying "no code" or such be displayed instead of the content. I'll wager someone patched the code link thingy to strip out HTML comments before displaying the code. How rude.

And for the record, I have no problems with your use of the spoiler tag.

UPDATE: tye is or has looked a bit into my prob -- but i wanted to point out that Firefox users can highlight the relevant node and select "View Source" -- preventing them from having to wade thru mucks of HMTL to get to the hidden HTML comment.

UPDATE2: Thanks tye -- i think the newline requirement is a new thing -- i knew that i was hard linking to the page but that was pure laziness on my behalf.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: spoiler tag "abuse" (<!--<c>)
by tye (Sage) on Dec 12, 2008 at 05:01 UTC

    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        

Re^2: spoiler tag "abuse"
by ikegami (Patriarch) on Dec 11, 2008 at 22:07 UTC

    I guess a few of my nodes now have broken links! Unfortunately, that trick only works with code blocks and not arbitrary HTML.