Menu

#96 Unable to get zebra lines without line numbers

open-accepted
None
2
2012-12-25
2008-06-12
Anonymous
No

Make geshi able to get zebra lines without adding the fancy line numbers

Discussion

  • BenBE

    BenBE - 2008-06-12
    • labels: 781469 -->
    • priority: 5 --> 2
    • milestone: --> 417760
    • assigned_to: oracleshinoda --> milianw
    • status: open --> open-accepted
     
  • BenBE

    BenBE - 2008-06-12

    Logged In: YES
    user_id=1106788
    Originator: NO

    This will be harder than it sounds as the lin style is applied using attributes to the list items, not the line div's. Changing this behaviour will cause the output format to be modified too.

     
  • Nobody/Anonymous

    Logged In: NO

    A much better solution in my point of view would be to remove the line numbers via CSS:

    pre ol {
    padding:0;
    }
    pre ol li {
    list-style:none;
    }

     
  • Milian Wolff

    Milian Wolff - 2008-06-24
    • status: open-accepted --> pending-works-for-me
     
  • Milian Wolff

    Milian Wolff - 2008-06-24

    Logged In: YES
    user_id=1594854
    Originator: NO

    see my comment below. blasting sf.net logins...

     
  • BenBE

    BenBE - 2008-06-24

    Logged In: YES
    user_id=1106788
    Originator: NO

    I agree on both solutions, but IMHO the version without line numbers enabled explicitely should be preferred for zebra lines as the code production can be reduced to a minimum, because all the line breaking necessary for line numbers can be avoided AND the produced output can be smaler. Al in all there are some advantages in having the support in without the need for enabling line numbers and skipping them later.

    Having line numbers (even if hidden) has the disadvantage of FF producing dirty clipboard results, which can be avoided when done properly.

     
  • BenBE

    BenBE - 2008-06-24
    • status: pending-works-for-me --> open-accepted
     
  • BenBE

    BenBE - 2009-06-27
    • milestone: 417760 --> Next_Release_(Stable)
     

Log in to post a comment.