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

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.

  • Comment on Re^4: Change default style sheet: add line numbers (code)

Replies are listed 'Best First'.
Re^5: Change default style sheet: add line numbers (counter-increment: codeLineCounter;)
by Anonymous Monk on Apr 01, 2015 at 20:01 UTC
      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

        The ordered_list tags are missing? Let's see:

        <ol><li> item one</li> <li> item two</li> </ol>

        renders...

        1. item one
        2. item two

        Really!

      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!

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

        Some which browsers?