Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Change default style sheet: add line numbers (code)

by Anonymous Monk
on Apr 01, 2015 at 18:16 UTC ( [id://1122181]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Change default style sheet: add line numbers (code)
in thread Change default style sheet: add line numbers

So your proposal has nothing to do with the default style sheet? Which is CSS?
  • Comment on Re^3: Change default style sheet: add line numbers (code)

Replies are listed 'Best First'.
Re^4: Change default style sheet: add line numbers (code)
by roboticus (Chancellor) on Apr 01, 2015 at 18:45 UTC

    I'm not saying that at all. I'm simply not web savvy enough to know how it would be done. I was guessing(!) that it could be done easily with a style sheet (CSS) which should be a relatively minor change. I don't think that the feature would help enough to warrant any code changes.

    I tried viewing the page source for Re^2: Change default style sheet: add line numbers to see if I could figure out a way to modify my settings to make the line numbers not appear in a cut-and-paste, but wasn't able to do so in the limited time I had this morning. I may try again this evening, though.

    Update: I forgot to mention--when I made the suggestion originally, I was thinking it was a CSS thing 'cause I totally forgot about the setting I actually used...until someone asked for how I got the line numbers to appear and I reviewed my settings.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

        FWIW, the same or better results could be accomplished with <li> "code prefix" but ATM  <ol> </ol> tags are missing , which would have to be added by pmdev

        or via javascript ... but if you go way of javascript might as well go for full radicality of PerlMonks meets Twitter Bootstrap

        That's indeed a good idea, but some browsers lose line breaks when copying.

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)

        PS: Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1122181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found