Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

<c>code
here</c>

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

Comment on new feature, code tags get added [download] link
Select or Download Code
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)%7Be%5Bi%5D.style.display=e% +5Bi%5D.style.display==%22none%22?%22inherit%22:%22none%22;%7D%7Delse% +7Be%5Bi%5D.style.display=e%5Bi%5D.style.display==%22none%22?%22inheri +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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://790517]
Approved by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-11-27 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (179 votes), past polls