Feature request - adding line numbers to [code] area..

Discussion in 'Support & Feedback' started by Lichurec, Dec 19, 2006.

  1. #1
    Hello

    I've been searching though Suggestions & Feedback section for quite a long time now and could not find any feature request / question similar to mine.. So please forgive me - if there already was one and I just could not find it..

    Would it be possible to modify [ code ] area so that each line would have it's number mentioned?
    right now [ code ] area looks like:
    this is the first line
    this is a second line
    this is third
    
    
    (..)
    
    
    
    last
    Code (markup):
    With modification - it would generate something like:
    [B]01[/B] this is the first line
    [B]02[/B] this is a second line
    [B]03[/B] this is third
    [B]04[/B] 
    [B]05[/B] 
    [B]06[/B] (..)
    [B]07[/B] 
    [B]08[/B] 
    [B]09[/B] 
    [B]10[/B] last
    Code (markup):
    Of course line numbers would have to be generated automatically ;)

    OR - maybe it would be worth to simply add another tag like [ numcode ] (..) [ / numcode ] for one with lines numbered and leave [ code ] as it looks like now..

    I've seen such "modification" on several forums and must say - it really helps...

    Kindly regards,
    L.
     
    Lichurec, Dec 19, 2006 IP
  2. Bondat

    Bondat Peon

    Messages:
    2,397
    Likes Received:
    217
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds very helpful features.. Will be looking forward to this. :rolleyes:
    Goodluck if Shawn will add this features. ;)
     
    Bondat, Dec 19, 2006 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    I had it setup that way before... it was annoying though because you woudl get line numbers when trying to copy/paste code.
     
    digitalpoint, Dec 20, 2006 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #4
    LOL yeah it just got removed a month back or so.

    Ideally it would have line numbers and then another textarea like box next to it from where to copy without line number. Like a table with two columns where you can select the right columns without selecting the left columns.
     
    T0PS3O, Dec 20, 2006 IP
  5. Lichurec

    Lichurec Peon

    Messages:
    61
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Doh :|

    Apparently I have not been reading this forum SO "far" ago ;)

    Anyway - I think that I've seen a mod / hack that numbered lines "outside" proper textarea - so copy & paste did not include those numbers.. just can't remember where...

    L.
     
    Lichurec, Dec 20, 2006 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    This one did that, but the non-copying of line numbers was only supported by certain browsers, so...
     
    digitalpoint, Dec 20, 2006 IP