News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

code blocks only 1 row...

Started by Jorin, February 07, 2006, 06:08:38 AM

Previous topic - Next topic

Jorin

Hi,

if I use the "code" icon in the editor to post code changes in this forum, their is only 1 row shown (as you can see here: http://www.simplemachines.org/community/index.php?topic=70077.0). How can I change the height of the code block so all of the code can be seen?

Dannii

That's how it works. You've posted only 1 line of code. Code blocks don't wrap as that will often cause more problems than it helps.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Jorin

Hmmm... I thought I posted more code in the past, but also only 1 row shown... But maybe I'm wrong, not sure.  :-[ Thanks anyway! And sorry...

Dannii

No need to be sorry ;)
And it is changeable if you really need to. But the potential problems in some languages of incorrectly-placed linebreaks need to be considered.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Jorin

No really need to change it. Thanks!

Daniel Hofverberg

Speaking of code blocks, how come many code blocks on this site are zero rows high, and therefore are impossible to see anything in?

For instance, this post:
http://www.simplemachines.org/community/index.php?topic=67802.msg476457#msg476457

It looks okay in Firefox (one row high), but not in IE (at least in 6.0). Quite annoying, as it happens in quite a lot of posts on this forum; and it's impossible to see the content in those code blocks...

Advertisement: