Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Change default style sheet: add line numbers

by LanX (Saint)
on Mar 31, 2015 at 16:02 UTC ( [id://1122014]=note: print w/replies, xml ) Need Help??


in reply to Re: Change default style sheet: add line numbers
in thread Change default style sheet: add line numbers

I agree that the effect on new posters is not really predictable. (IMHO there are other possible measures that may have far more impact)

But for someone trying to read and answer on longer code, line numbers could be very helpful.

> we'll need to make sure it was posted as written

well this could be fixed with an optional start-offset.

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

PS: Je suis Charlie!

  • Comment on Re^2: Change default style sheet: add line numbers

Replies are listed 'Best First'.
Re^3: Change default style sheet: add line numbers
by chacham (Prior) on Mar 31, 2015 at 16:08 UTC

    >But for someone trying to read and answer on longer code, line numbers could be very helpful.

    Agreed. Though this begs the question: How often do you think this comes up? That is, that a code listing was "long enough" that you had wished there were provided line numbers?

      > That is, that a code listing was "long enough" that you had wished there were provided line numbers?

      well whenever I have to refrain to inlined comments to mark lines

      print (1+2)+3; # <- here is your problem

      i.o.w. too often ;-P

      Of course this could be up to your personal setting or a JS based nodelet hack, but if you are not sure that the other ones can easily see line numbers you won't use them.

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

      PS: Je suis Charlie!

        Hmm.. For arguments sake. Say we had <c></c> (<code></code>) but added <cl></cl> (<codelist></codelist>) to add line numbers. If a person were to respond, they could repost the code, or perhaps the relevant section(s) or part(s) and refer to the line numbers that way. Reposting code is not as great an idea (unless <cl></cl> did it automatically) but would allow adding line numbers without editing the original post, on-demand.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found