Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2009
    Posts
    107
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Counting lines of scource code

    Hi, just wondering, is there a way in which a script can count the lines of your scource code.

    for example if i had a page


    where i could put
    <BEGIN COUNT>
    blah blah blah
    <END COUNT>

    so for example that would tell me there is 1 line.

    reason im asking is Ive made a layout with 2 collums , a main box on the left, and a right pannel.

    but the problem im having , is if the content on each page of the right box isnt as long as the left, it ends up in diffrent places up and down the page, and i dont want to use frames or anything, so i dont know any other way of fixing this, other than matching the content on each side.

    so my idea was if i could some how count the lines on the left and say like

    if less than 40 add the diffrence.

    in <br>'s


    get what i mean?

    hope i havent confused every one

    thanks

    LIAM

  • #2
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    you would have to redesign your layout to accomodate varying levels of content.

    doing what you are suggesting is considerably more complicated and would not really be feasible

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    so my idea was if i could some how count the lines on the left and say like

    if less than 40 add the diffrence.

    in <br>'s


    get what i mean?
    Yeah, but not good. Take a look at www.alistapart.com/articles/fauxcolumns/ (or http://www.dynamicdrive.com/style/bl...height-script/)
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    Regular Coder
    Join Date
    Mar 2009
    Posts
    107
    Thanks
    15
    Thanked 0 Times in 0 Posts
    Thanks for all your help

    have read the links you have provided and came up with another soloution.

    thanks allot

    Liam

  • #5
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Liam, if you like you can post what code you have so far. It sounds to me like the structure of your page should be simple - in order to do what (I think) you are aiming for.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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