HighDots Forums  

white-space help

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss white-space help in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Andy Dingley
 
Posts: n/a

Default Re: white-space help - 08-15-2006 , 08:12 AM







RC wrote:

Quote:
xmp> tag </xmp> is better than <pre> tag </pre
Why?

It's not part of HTML (since 3.2), so it's not valid, and even where it
was recognised, it didn't do anything that you can't do with <pre>

http://www.w3.org/TR/html4/appendix/...html#h-A.3.1.3
"The following elements are obsolete: LISTING, PLAINTEXT, and XMP. For
all of them, authors should use the PRE element instead."



Reply With Quote
  #22  
Old   
RC
 
Posts: n/a

Default Re: white-space help - 08-15-2006 , 09:05 AM






Andy Dingley wrote:
Quote:
RC wrote:

xmp> tag </xmp> is better than <pre> tag </pre

Why?
Inside <xmp> tag you can type

5 > 4
1 < 2
3 & 7 both are > 1
<b>Bold face</b>

</xmp>

This is convenient for mathematic and HTML examples.

But inside <pre> tag you must/need to type

5 > 4 or 5 &gt; 4
1 < 2 or 1 &lt; 2
3 & 7 both are $gt; 1
<b>Bold face</b>

</pre>

Do you think everybody remember those hexadecimal or symbols?
Quote:
It's not part of HTML (since 3.2),
Too bad, it is deprecated of HTML 2.0


Reply With Quote
  #23  
Old   
Dr John Stockton
 
Posts: n/a

Default Re: white-space help - 08-15-2006 , 11:03 AM



JRS: In article <1155519612.381837.181370 (AT) 74g2000cwt (DOT) googlegroups.com>,
dated Sun, 13 Aug 2006 18:40:12 remote, seen in news:comp.infosystems.ww
w.authoring.stylesheets, Brent <bkraymond (AT) gmail (DOT) com> posted :

Quote:
On 2006-08-13, Brent wrote:

Is there really no way to force the text to wrap while preserving
whitespace? This is really bumming me out. :-(

Paragraph indents, character returns at the end of paragraphs, and
multiple spaces in succession. I lose them all when I attempt to wrap
the text.
You can paste it into a textarea, then invoke javascript to wrap at
whitespace before a given character count and put it in a PRE.

Parts of the javascript behind <URL:http://www.merlyn.demon.co.uk/js-
quick.htm> Pack button might be useful to you; you'd have at least to
remove what changes multiple whitespace to single - or replace it by
multiple &nbsp;.

Read the c.l.j FAQ.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.


Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.