That’ll work, but it’s tiny and difficult to read. I don’t like it.
The main problem is, that without the [code] tag, multiple consecutive spaces are automatically converted to single spaces. That messes up the intended column alignment. But if you use periods instead of spaces (at least when you want more than one space), you can get closer to what you want. Because of the variable character width, you’ll still have to switch back and forth into and out of Preview mode several times and experiment with how many periods you’ll need between each pair of entries in each row:
Name … wins … draws … losses
Susie … 9 … 15 … 12
Bob … 14 … 6 … 4
Finally, if you want to make the periods invisible, just surround each bunch of periods with the “Font colour” tag and choose color FFFFFF (white):
Name … wins … draws … losses
Susie … 9 … 15 … 12
Bob … 14 … 6 … 4
This is tedious, but if you really care about the quality of your work (blah blah blah) …
The larger size does indeed make a great difference. For some reason I had thought the [size] tag wouldn’t work with [code].
Now if only it were possible to change the color, and/or to use bolding, within a [code]. That light green color is atrocious for those of us with old eyes.
[size=150]
Name wins draws losses
Susie 9 15 12
Bob 14 6 4[/size]
[size=150]
Name wins draws losses
Susie 9 15 12
Bob 14 6 4
[/size]
[size=150]
Name wins draws losses
Susie 9 15 12
Bob 14 6 4
[/size]
Here are examples with color inside code, between size and code, and outside size. The color only affects the word CODE
I have a solution (not to the pairing issue, but to the display issue—probably need to split the topic). Define a new BB Code that maps to the HTML
. If one doesn’t want to be original with the name, this can be
[pre]{TEXT}[/pre]
as the usage
and
{TEXT}
as the HTML replacement. Unlike code (which is designed for verbatim rendering), pre takes HTML codes within it, so you can add color highlighting, or underline or bold face or put in a smilie. The only loss is that it doesn’t provide a scroll box—20 lines takes up 20 lines in the post.
What’s really needed is a BBCode for an HTML TABLE. Then all other formatting would still apply. Perhaps this is available in a newer version of BB? Don’t know…
Yes, the “code” and “pre” tags work the same way: both call a monospaced font, in this case, Courier New, which most users have on their computers. That comes in handy for quick display of WinTD output on a web page, or even in an HTML email, without having to table-tag it. For any other font, you would have to use table commands to line stuff up properly.
True, since the forum editor uses a proportional font. You really have to run everything through a WYSIWYG editor set for a Courier font and paste the results into the forum from that. With WinTD, you can print a wall chart to a text window and copy and paste that in.
So [code=php] instead of just [code] displays in blue instead of green. That’s an improvement. Are there any other options, such as colors other than blue and green, or bolding, etc?
The main difference between “pre” and “code” is that anything inside code is included exactly (thus code can be used to demonstrate html), while pre allows embedded html tags.
OK, well, at least you guys have demonstrated how to print in blue instead of green, and that [size] can be used with [code]. That takes care of the worst problems, I’d say. Thank you.