The size of the code box is STILL BROKEN

When someone posts code using code tags there is no limit to the size of the box in which it displays.

It should display in a box limited to 10 or 12 lines of code with scroll bars so you can read it all.

That is how it used to be before someone broke it.

As it is now it is almost impossible to deal with queries that post long chunks of code.

This needs to be FIXED, NOW.

...R

It won't be the first time I have been out of step with popular opinion but I am surprised that everyone else seems to be quite happy for code to stretch as far as it likes rather than being constrained in a small box with scroll bars as it used to be.

Even if I don't like it I can quite understand that the "team" won't bother fixing a "problem" that has no general support.

...R

I agree with you, Robin.

An unconstrained code box is almost as bad as posting a long program without code tags.

The fix should be simple, I think.

Add something like

height: 300px;

into the CSS class bbc_code in the CSS file

http://forum.arduino.cc/Themes/Arduino2x-Theme/css/index.css?alph21

Just patched it temporarily using Firebug and it does the trick.

Hackscribble:
Just patched it temporarily using Firebug and it does the trick.

It would be nice if Firebug would do that automatically

...R

Robin2:
It won't be the first time I have been out of step with popular opinion but I am surprised that everyone else seems to be quite happy for code to stretch as far as it likes rather than being constrained in a small box with scroll bars as it used to be.

Permit me to reassure you, you are by no means out of step with popular opinion. I am quite sure all of us who post - or review - code, agree with you 100%. :smiley:

It's just that people have been too busy whinging about the other problems which make simple things more difficult. :o

I have now decided "I can't be bothered" to comment on two or three questions just because the properly presented code is so long that I can't easily skip from the top to the bottom and back to see the user's comments or questions.

This is doing nobody a favour.

Back in the day when long code meant that the user hadn't bothered to use code tags you could at least complain about that.

...R

You are certainly not alone Robin. I started a thread on the subject a while ago to which you contributed. Code tags - good news/bad news - Website and Forum - Arduino Forum I do like the ability to select the code with one click though.

It may be my imagination but it seems to me that there has been more code posted without the code tags since the upgrade and the sticky still refers to the '#' button rather than the 'plus sign over a scroll' button, even of people actually read it.

UKHeliBob:
I started a thread on the subject a while ago to which you contributed.

Sorry. I had forgotten in all the excitement.

...R

It may be my imagination but it seems to me that there has been more code posted without the code tags since the upgrade and the sticky still refers to the '#' button rather than the 'plus sign over a scroll' button, even of people actually read it.

Look again, it's not a 'plus' sign!

Don

Look again, it's not a 'plus' sign!

Even better !
Looking closer I can see that it is actually <> in front of a scroll, or at least I think it is.

Luckily I have not tried to describe it to anyone who posted untagged code.

Please wrap your code in code tags by selecting it and clicking the "scroll with <> things in front of it" button. :slight_smile:


Rob

The formatting options are a mess.

Regardless I always just type

[code]
and
[/code]

Graynomad:
Please wrap your code in code tags by selecting it and clicking the "scroll with <> things in front of it" button. :slight_smile:

I've amended my boilerplate to say something very similar to that, because apparently the new icons have met with approval of the user interface team.

Whoever they are.

Robin2:
When someone posts code using code tags there is no limit to the size of the box in which it displays.

arduino/forum-issues

apparently the new icons have met with approval of the user interface team.

They must have very good eyesight. The old #, whilst meaningless in itself, was very easy to describe and see.

I have just noticed when using Win 7 and Chrome hovering near the bottom/right corner of the code box and holding down the left mouse button allows the box to be resized. Robin mentioned this in another thread and I reported that it did not work for me.

Amusingly it only allows you to make the box larger, not smaller though .......

Sorry, I don't understand what you were trying to say.

I can't see the issue in that list.
And the list should be published in this Forum - I have said this elsewhere.

...R

The size of the code box now seems to be fixed.

THANK YOU VERY MUCH

But am I being unreasonable to think that the background team should have let us know? (and claim some credit ?)

...R

Yes, thanks for the fix although I know that a senior member of the forum was caught out earlier today by thinking that a user had not posted all of his code because it appeared severely truncated in the code box with scroll bars !