AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > General > Forum & Site Feedback

Notices

Reply
 
Thread Tools
Old 2004-01-20, 15:21   Link #1
warnold
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:
Originally Posted by from the vBscript documentation
The [ code] tag switches to a fixed-width (monospace) font and preseves all spacing.
except that it would not also add the indention, lines, and "Code:" header
Code:
like the code tag does
It would have come in handy for this recent post of mine when I wanted to do a simple table. I've also wanted it at least 2 previous times that I remember, but can't be bothered to lookup the threads for.

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-
warnold is offline   Reply With Quote
Old 2004-01-20, 16:07   Link #2
hhaamu
Don't panic.
 
 
Join Date: May 2003
Location: Galactic Sector ZZ9 Plural Z Alpha
Age: 28
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
__________________

(actually, any browser is fine to me as long as it doesn't use IE's rendering engine...)
Generating the #animesuki stats since 2003
hhaamu is offline   Reply With Quote
Old 2004-01-20, 17:28   Link #3
warnold
nerfelwap
 
 
Join Date: Feb 2003
Location: Richmond, VA, USA
Quote:
Originally Posted by hhaamu
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.
nope, The spacing is the only part there isn't a tag to do.


--
-billy-
warnold is offline   Reply With Quote
Old 2004-01-21, 05:23   Link #4
GHDpro
Administrator
*Administrator
 
 
Join Date: Jan 2001
Location: Netherlands
Age: 35
W   e   l   l, this was p  r  e  t  t  y easy to add.
GHDpro is offline   Reply With Quote
Old 2004-01-21, 11:10   Link #5
warnold
nerfelwap
 
 
Join Date: Feb 2003
Location: Richmond, VA, USA
Quote:
Originally Posted by GHDpro
W   e   l   l, this was p  r  e  t  t  y easy to add.
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 with [ pre]:
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.
warnold is offline   Reply With Quote
Old 2004-01-22, 07:29   Link #6
GHDpro
Administrator
*Administrator
 
 
Join Date: Jan 2001
Location: Netherlands
Age: 35
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...
GHDpro is offline   Reply With Quote
Old 2004-01-24, 09:13   Link #7
GHDpro
Administrator
*Administrator
 
 
Join Date: Jan 2001
Location: Netherlands
Age: 35
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)
GHDpro is offline   Reply With Quote
Old 2004-01-24, 21:29   Link #8
Shii
Afflicted by the vanities
*Fansubber
 
 
Join Date: Feb 2003
Location: Fish-shape Paumanok
Age: 27
Test              (lots 'o spaces)              Test

[edit] It does not work.
__________________
Learn to define and spell moé
Shii (formerly known as ashibaka)
Shii is offline   Reply With Quote
Old 2004-01-25, 14:07   Link #9
GHDpro
Administrator
*Administrator
 
 
Join Date: Jan 2001
Location: Netherlands
Age: 35
Argh... ok, back to the drawing board.
GHDpro is offline   Reply With Quote
Old 2004-01-25, 19:38   Link #10
NightWish
…Nothing More
*Administrator
 
 
Join Date: Mar 2003
Age: 35
Add a "
font-family: monospace;
" and you would get the effect warnold is after -- in some browsers. However UAs can ignore the directive and some, like IE for example, do.
__________________
🐾
…to be bold, to be brave; it is the thinking that the heart can still be saved.
And the darkness can come quick. The danger's in the anger and the hanging on to it.
NightWish is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
We use Silk.