SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: [code]

  1. #1
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [code]

    This sould probably go to vBulletin as a suggestion, but how about making the [ code ] areas scrollable?

    Off the top of my head:

    Code:
    .codebox { max-height: 15em; width: auto; overflow: auto; }
    Later,
    Douglas
    Hello World

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice idea. It would stop long lines of code from screwing up page layout as well.

    On the subject of the [ code ] areas, whatever happened to [ ASP ] [ /ASP ] ....? I see that they've all screwed up in the ASP forums (unless it's just my browser).

    G

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree, Doug. The code box needs to be scrollable, preferably both horizontally and vertically, since some code is kind of long...

  4. #4
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was discussed back when the new design was being made. IIRC, it wasn't implemented for compatability reasons.
    Mike
    It's not who I am underneath, but what I do that defines me.

  5. #5
    Rabble Rouser bronze trophy
    Join Date
    Jan 2003
    Location
    Mountain View, CA
    Posts
    427
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Browsers that don't support it should just display it like it is now, while better browsers would get the benefit of the better presentation. Is this really a problem?

  6. #6
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know Opera 5 makes a hash of it (The part which you would "scroll to" gets hidden totally) Opera 6 spills the content, Opera 7 and all the other Windows browsers I have looked at it it either ignore it totally or use it properly.

    A search turned up this thread: http://sitepointforums.com/showthrea...=overflow+code

    I see you brought it up Mike

    Compatability issues seem small, benifits for non-Opera 5 users. I knew that before I made the post, you you know my opinion there

    A text indent solution may work, and then turn on text wrapping again. That way you could get over the extending table problems...

    Later,
    Douglas
    Hello World


Bookmarks

Posting Permissions

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