Find the answer to your Linux question:
Results 1 to 6 of 6
Posting codes, field is very small (displaying less than 3lines). Is there a way to enlarge it? Thanks,...
  1. #1
    Just Joined! legendbb's Avatar
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    25

    Red face Code field is very small

    Posting codes, field is very small (displaying less than 3lines).

    Is there a way to enlarge it?

    Thanks,

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Hello

    Your code taken from your other thread seems to be working fine when I post it.

    Code for "testing only" follows:

    Code:
    for (;;){
    
    x=getchar();
    if(x=='q') {
    printf("exit");
    exit(0);
    }
    else
    printf("Press a key");
    }
    I'm not at all sure what might have happened when you posted it.


    Edit: well it did preview fine, but then it turned out just like yours when it was actually posted. I'll do some testing with it to see what might be happening.

    Thanks for the feedback.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Okay, removing the INDENT tags allows it to post correctly. Not sure just yet why those tags are causing the earlier behavior. Code for "testing only" follows:

    Code:
    for (;;){
    x=getchar();
    if(x=='q') {
    printf("exit");
    exit(0);
    }
    printf("Press a key");
    }
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,296
    The problem is the line of html that reads

    <pre style="height:36px;" class="bbcode_code">

    It doesn't need the style attribute or the height value needs to increase a bit if you want to limit the height of the box

    [edit]144px looks good[/edit]
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  5. #5
    Just Joined! legendbb's Avatar
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    25
    Quote Originally Posted by elija View Post
    The problem is the line of html that reads

    <pre style="height:36px;" class="bbcode_code">

    It doesn't need the style attribute or the height value needs to increase a bit if you want to limit the height of the box

    [edit]144px looks good[/edit]
    Didn't find how to change this. Removed [INDENT] for now.

    Thanks,

  6. #6
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,296
    Sorry, that was aimed at the devs. To apply in Firefox install the stylish extension and add the following style to it

    Code:
    @namespace url(http://www.w3.org/1999/xhtml);
    
    @-moz-document domain("linuxforums.org") {
        .bbcode_code { height: 144px !important; }
    }
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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