Results 1 to 4 of 4
  1. #1
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Code Tag Line Numbers

    Something is up with the line numbers on code that is surrounded by code tags. The numbering seems to go haywire after the 9th line.

    For example:

    Code Tag Line Numbers-linenumber.jpeg

    Edit: Added picture because problem is browser-dependent.
    Last edited by awinston; 08-16-2012 at 05:05 AM.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  2. #2
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: Code Tag Line Numbers

    Actually, it's not haywire at all. It simply puts each individual digit on its own line. Instead of putting 10 on the tenth line, it puts 1 on the tenth line and 0 on the eleventh line.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: Code Tag Line Numbers

    Browser dependent. I don't see it for 2 digit line numbers, but after the 99th line I get the same anomaly for 3-digit line numbers, in Opera. Helps me separate the SSCCEs froim the code dumps though, so I'[m not really complaining ;)

    If I open the same page in FF everything's OK.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: Code Tag Line Numbers

    I'm using Chrome. What's curious is that this only started happening to me recently. From my testing, IE and Safari are fine as well as Firefox as you mentioned.

    On a side-note, Opera has a very distinctive smooth feel when scrolling a page. I almost never use it, but it certainly sets itself apart from Chrome's rigid scrolling.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

Similar Threads

  1. How do I print numbers in a line?
    By Emtino in forum New To Java
    Replies: 2
    Last Post: 04-17-2012, 08:08 AM
  2. Display line numbers in source code
    By g9n99 in forum Eclipse
    Replies: 2
    Last Post: 03-24-2012, 01:50 PM
  3. Constructors pls explan the code line by line in comments
    By vibaviattigala in forum New To Java
    Replies: 1
    Last Post: 02-19-2011, 04:03 AM
  4. Adding line numbers to code in output file
    By misterwebb in forum New To Java
    Replies: 2
    Last Post: 02-14-2011, 12:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •