• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I hate the way [CODE] tags get layed out.

 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to think my posting style is more code less talk. But here is what happens:

if I try

to intersperse small code sections

within a paragraph. I hate the little word "code" that appears (what did
you think it was, poetry?), I hate the horizontal rules (doesn't the font
set it off, or at least suppress the rules when the code snippet is less
than 6 lines), I hate all that space that gets padded in, and I hate
the overly small font size for code that gets dialed in (yeah, I changed
my browser's (Firefox) monospace font settings, but now that font is too big
for every other web site, for example for Sun's javadoc pages).

Take a look at how the code tags layout code in Sun's forums: http://forum.java.sun.com/index.jspa
Which do you prefer?
 
Stephen Boston
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Man, that's a lot of hate.

I like it as is. Although I try to stay away from Sun's forums. I like people being helpful instead of hurtful.

As you are using FireFox, why don't you use the CTRL + to bump the font size up for the active browser window/tab?
 
Marilyn de Queiroz
Sheriff
Posts: 9064
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun's server is apparently malfunctioning preventing me from seeing your illustration. However, the code tags are pretty much beyond our control. They are the way they are because we are using UBB software pretty much out of the box. It is very, very difficult to change for reasons I won't go into here.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it would probably be possible to modify some of these things without too much headache, if people agree it's desireable. The word "code" could be removed I think. And the horizontal lines too. Personally I like the horizontal lines, but think the "code:" is unnecessary. What do others think?

The fonts are much harder to make changes to - the code that handles that is a horrible mess that gives me a headache when I look at it. Changes in this area are unlikely.
 
Stephen Boston
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it made Jeff hate it less I'd go for it.
 
Marilyn de Queiroz
Sheriff
Posts: 9064
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like the horizontal lines but think we could lose the blank line between the upper line and the beginning of the code. I also think we could lose the word "code". That would decrease the vertical space a little while still setting the code off for people with various browswers.
 
Dave Lenton
Ranch Hand
Posts: 1241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marilyn de Queiroz:
Sun's server is apparently malfunctioning

Now there's a shocker. I can't believe their forum isn't working properly.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stephen Boston:
Man, that's a lot of hate.

[...]
As you are using FireFox, why don't you use the CTRL + to bump the font size up for the active browser window/tab?


Thanks for the responses, everybody. I'm feeling less hate today. I guess
I was letting off some steam; my job and my pointed-headed managers are what
I really hate.

Anyhowdy, peering at the rendering of code tags in the html source, I see the
font is has attribute size=2, and that seems to be the culprit.
Could that be easily changed to 3 or 4?

Here is a test of <pre>size 1, used to render the word code:</pre>
<pre>size 2, used to render code</pre>
<pre>size 3, would code look better in this?</pre>
<pre>size 4, or would code look better in this?</pre>

Thanks for the CTRL-+ tip, that makes code more readable, but then the regular text gets too big. I think code is as important as English, so why
should its font be relatively smaller.
[ November 04, 2005: Message edited by: Jeff Albrechtsen ]
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's given me an idea... What if I wrap moe code in font tags, hehe:
[ November 04, 2005: Message edited by: Jeff Albrechtsen ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem I see with a bigger font for code is that code doesn't get wrapped and long lines of code horribly mess up the layout of a page. If we increase the font size of code, that will happen much more frequently...
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The word "code" could definitely go away. I'd actually can the HR's too, if'n it were up to me.
 
Marilyn de Queiroz
Sheriff
Posts: 9064
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even those short lines of code make me scroll horizontally in the large font you just used. Besides, html has been disabled in most of the forums that you probably would want to post code in, so font tags won't work there.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
The word "code" could definitely go away.

Could we replace it with:
HEY! THIS IS WHAT CODE LOOKS LIKE WHEN YOU USE UBB CODE TAGS!!!
IT'S INDENTED!!

?
[ November 04, 2005: Message edited by: Ben Souther ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11886
198
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:

Could we replace it with:
HEY! THIS IS WHAT CODE LOOKS LIKE WHEN YOU USE UBB CODE TAGS!!!
IT'S INDENTED!!

?


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic