Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

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


in reply to Re^3: Change default style sheet: add line numbers
in thread Change default style sheet: add 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!

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

    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://1122017]
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