Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

new feature, code tags get added [download] link

by Anonymous Monk
on Aug 22, 2009 at 02:35 UTC ( #790517=monkdiscuss: print w/replies, xml ) Need Help??

Today a new feature was added, if you use


it gets turned into

code here
Can we please change that back to the old way? Or if you wish to keep it, made it #download, or get rid of [download] text, and turn the entire code content (or the first 10 characters) into a link?

Example 1

#!/usr/bin/perl -- use strict; use warnings;
For example 1 you can made special div css class that doesn't underline links.

Example 2

#!/usr/bin/perl -- use strict; use warnings;
For example 2 use span tags.

An entirely better option would like this paste-it example, you can select the code without selecting line numbers; a download link wouldn't be required at all.

Thank you for listening

Replies are listed 'Best First'.
Re: new feature, code tags get added [download] link
by Tanktalus (Canon) on Aug 22, 2009 at 03:51 UTC

    Or, you could create an account, log in, go to your Display Settings and turn it off if you don't like it.

    You have a choice. It's free.

      I am aware of that option, thanks, but no thanks
        That's too bad. I have no problem with that feature, not sure why you would object to it. It is a reasonable default for users who don't, for some reason, create an account.

        If you really don't like it I'm sure GreaseMonkey, Stylish, or even editing your userContent.css file (or similar solutions for non-Mozilla browsers) would provide an answer.
Re: new feature, code tags get added [download] link
by Anonymous Monk on Aug 22, 2009 at 10:52 UTC
    Here is a Greasemonkey script Here is a bookmarklet. To use, copy below code to html file, open in browser, and drag the link into your bookmarks
    <a href="javascript:(function()%7B%20%20function%20toggleDisplay(t,c)% +7Bvar%20e=document.getElementsByTagName(t);for(var%20i=0;i%3Ce.length +;i++)%7Bif(c)%7Bif(e%5Bi%5D.className==c);%7D%7Delse% +t%22:%22none%22;%7D%7D%7DtoggleDisplay(%22div%22,%22embed-code-dl%22) +;%20%20%7D)()">togDisDL</a>
    clicking the bookmark toggels hide show for [download] link.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://790517]
Approved by Tanktalus
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-06-21 20:40 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (119 votes). Check out past polls.