Wordsmith.org: the magic of words

Wordsmith Talk

About Us | What's New | Search | Site Map | Contact Us  

Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#65402 04/13/02 01:22 PM
Joined: Apr 2000
Posts: 10,542
tsuwm Offline OP
Carpal Tunnel
OP Offline
Carpal Tunnel
Joined: Apr 2000
Posts: 10,542
oh, the anguish I suffer'd (too brainey?)
o'er information or miscellany..


most of the time text is formatted based on tags used to mark up that text. any extra whitespace (spaces, tabs, returns) that you put in your text (or copy and paste) are stripped out by the browser.

the exception to this rule is use of the preformatted text tag <pre>. any whitespace that you put into text surrounded by the <pre> and </pre> tags is retained in the final output. special note: use spaces, not tabs; different browsers assign different space values to tabs!

the catch is that preformatted text is usually displayed in a monospaced font such as Courier, so if you copy and paste something that's in a different kind of font you may not get what you want when various browsers display it.

if you use preformatting at all you should look at the results not only with your usual browser, but with another as well; e.g., try both IE and Netscape.

NOTE: for markup, substitute []s for <>s

()

#65403 04/13/02 01:44 PM
Joined: Jan 2002
Posts: 320
S
enthusiast
Offline
enthusiast
S
Joined: Jan 2002
Posts: 320
Thanks for the tip, tsuwm. I'll play with it and see what happens.


#65404 04/14/02 02:04 AM
Joined: Mar 2001
Posts: 4,189
Carpal Tunnel
Offline
Carpal Tunnel
Joined: Mar 2001
Posts: 4,189


              Thanks, Mike!  


Your Happy Epeolatrist!


#65405 04/14/02 12:17 PM
Joined: Sep 2001
Posts: 872
M
old hand
Offline
old hand
M
Joined: Sep 2001
Posts: 872
           
WHO
IS
MIKE?


thanks, tsuwm.
O'yeah. I almost forgot...> () peace in our time


#65406 04/15/02 02:40 AM
Joined: Feb 2002
Posts: 833
M
old hand
Offline
old hand
M
Joined: Feb 2002
Posts: 833
any whitespace that you put into text surrounded by the <pre> and </pre> tags is retained in the final output.

ungh...I tried this and it didn't work. I put the letters "pre" in square brackets, then put in a few spaces, then the usual closing (square bracket, slash, pre, close bracket) and IT DIDN'T WORK.

What am I doing wrong?


#65407 04/15/02 02:44 AM
Joined: Apr 2000
Posts: 10,542
tsuwm Offline OP
Carpal Tunnel
OP Offline
Carpal Tunnel
Joined: Apr 2000
Posts: 10,542
from what you've posted, I can't imagine...

      (what did you put after that?)



#65408 04/15/02 02:54 AM
Joined: Feb 2002
Posts: 833
M
old hand
Offline
old hand
M
Joined: Feb 2002
Posts: 833
(what did you put after that?)

HOW DID YOU DO THAT?!

I put what I previously wrote (square bracket rigamarole) and then I put "HOORAY" (thinking it would have worked), and then I did a coupla other lines with indents (as I thought) - but when it came to the post preview, no indents showed up at all, at all.

I will try again here:

          

HOORAY!

and try another way, here:

          HOORAY!

hmmm....

AHA! just did a preview and discovered that you include the text you wish to be indented, in the space enclosed by code.

'kay, got it now:

          HOORAY!

                          this board is the greatest. 


#65409 04/16/02 07:01 PM
Joined: Jan 2002
Posts: 320
S
enthusiast
Offline
enthusiast
S
Joined: Jan 2002
Posts: 320
I take it that tiny print is Courier. So that must mean you'd have to pre-format every line and live with the tiny print; otherwise you'd end up with two different fonts. Or am I still missing something?


#65410 04/16/02 07:10 PM
Joined: Apr 2000
Posts: 10,542
tsuwm Offline OP
Carpal Tunnel
OP Offline
Carpal Tunnel
Joined: Apr 2000
Posts: 10,542
again, it seems that too much depends on how the browser responds to worry too much over the exact output. either preformat if spacing is paramount, or stick with the known, consistent font output if not.
with HTML you have much more control, but with this "markup" I don't think there's much more you can do.

#65411 04/16/02 08:08 PM
Joined: Mar 2001
Posts: 4,189
Carpal Tunnel
Offline
Carpal Tunnel
Joined: Mar 2001
Posts: 4,189
Yes, it seems that with when I use the pre- command here to format an ongoing work, it changes the font and quadruples the spacing between the formatted sections and the others (sigh).

Your Happy Epeolatrist!

Page 1 of 2 1 2

Moderated by  Jackie 

Link Copied to Clipboard
Forum Statistics
Forums16
Topics13,912
Posts229,283
Members9,179
Most Online3,341
Dec 9th, 2011
Newest Members
TRIALNERRA, befuddledmind, KILL_YOUR_SUV, Heather_Turey, Standy
9,179 Registered Users
Who's Online Now
0 members (), 444 guests, and 3 robots.
Key: Admin, Global Mod, Mod
Top Posters(30 Days)
Top Posters
wwh 13,858
Faldage 13,803
Jackie 11,613
tsuwm 10,542
wofahulicodoc 10,510
LukeJavan8 9,916
AnnaStrophic 6,511
Wordwind 6,296
of troy 5,400
Disclaimer: Wordsmith.org is not responsible for views expressed on this site. Use of this forum is at your own risk and liability - you agree to hold Wordsmith.org and its associates harmless as a condition of using it.

Home | Today's Word | Yesterday's Word | Subscribe | FAQ | Archives | Search | Feedback
Wordsmith Talk | Wordsmith Chat

© 1994-2024 Wordsmith

Powered by UBB.threads™ PHP Forum Software 7.7.5