2004-01-20, 15:21 | Link #1 | |
nerfelwap
Join Date: Feb 2003
Location: Richmond, VA, USA
|
Request for new vBscript tag
I'd like a [pre] tag. I've been using [ code] to simulate it, but that looks messy.
[pre] should do the same as [ code], Quote:
Code:
like the code tag does Thinking more: Actually, all I really need is a tag that preserves all spacing, I can do everything else by combinations of other tags that already exist. -- -billy- |
|
2004-01-20, 16:07 | Link #2 |
Don't panic.
Join Date: May 2003
Location: Galactic Sector ZZ9 Plural Z Alpha
Age: 38
|
Technically, you can do this already by using the [ font] tag. At least the text in my .sig is monospace. Not sure if it covers the spacing part.
Let's try: This is a fixed-width table hopefully foo bar baz ...doesn't seem to work
__________________
|
2004-01-20, 17:28 | Link #3 | |
nerfelwap
Join Date: Feb 2003
Location: Richmond, VA, USA
|
Quote:
-- -billy- |
|
2004-01-21, 11:10 | Link #5 | |
nerfelwap
Join Date: Feb 2003
Location: Richmond, VA, USA
|
Quote:
Thank y o u OOPS: Bug: It's adding an extra line between each line of text: Test with [ code]: Code:
test line 2 line 3 8 space indented line number 4 lined up with 8 in above line test line 2 line 3 8 space indented line number 4 lined up with 8 in above line-- -billy- Last edited by warnold; 2004-01-26 at 12:35. |
|
2004-01-22, 07:29 | Link #6 |
Administrator
Administrator
Join Date: Jan 2001
Location: Netherlands
Age: 45
|
That would be a vB bug. vB translates all linefeeds into <br> tags,
yet <pre> also interprets the linefeeds as linefeeds. So you end up with double lines. Maybe a temporary solution is to enclose each line individually in <pre> tags: Line1 Line2 Line3 Edit: Ok, guess not. Hmm... |
2004-01-24, 09:13 | Link #7 |
Administrator
Administrator
Join Date: Jan 2001
Location: Netherlands
Age: 45
|
Doh! I just figured out to fix the problem. Simply by not using
the <pre> tag to handle things on HTML level, but the <code> tag. That kind of accomplishes what you wanted anyway: the same functionality as the code tag without the extra frills. (Since I modified the original vbcode, above examples now suddenly do work) |
|
|