Author |
Topic |
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-10 : 13:47:09
|
Completely forgot this stuff.........<body><font .... .... >{.... here some text goes and should be wrapped ....}</font></body> |
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-01-10 : 15:52:50
|
Text breaks automatically at blanks. More than 1 blank is always compressed to a single blank when displayed.If you have very-long-lines-oftextwithnospacesatall,thenyouneedtouse a widely supported but noncompliant element: <wbr>, which tells the browser to break here if it needs to. |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2004-01-10 : 17:39:59
|
you can use the <P> take to start new paragraphs ... or <BR> to start new lines ... is that what you need?- Jeff |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-01-10 : 17:55:41
|
I think I misunderstood the problem. |
|
|
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-10 : 19:11:51
|
Ahh..Have: one huge line of letters (no spaces in it).Would like it appears wrapped in your browsers......... |
|
|
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-10 : 20:02:09
|
Maybe wrapping can be done only in TEXTAREA? |
|
|
AjarnMark
SQL Slashing Gunting Master
3246 Posts |
Posted - 2004-01-10 : 20:30:21
|
Haven't tested the idea withing a TEXTAREA, but I can tell you from experience that a long line of text with no spaces (such as a URL) will force a table to expand beyond its defined size, even when you define the table as a fixed pixel width.--------------------------------------------------------------Find more words of wisdom at [url]http://weblogs.sqlteam.com/markc[/url] |
|
|
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-10 : 21:52:14
|
Ah, Mark, in textarea wrapping works ok: <textarea ... ... wrap="on">In short, this is it: Factorial of 10,000. 35,660 ciphers in that number.Who can believe me that on my machine (btw, of too little pack one) ittakes only about 10 seconds to calculate this number? |
|
|
Arnold Fribble
Yak-finder General
1961 Posts |
Posted - 2004-01-11 : 06:52:48
|
I can believe that.A Haskell program to output 10000! compiled with GHC takes about 5.5 on this machine (only a 550MHz K6). For what it's worth, the program looks like this:main = print (product [1..10000]) |
|
|
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-11 : 11:28:02
|
Oh.........What is the "a Haskell program"??? Is it something speciallydeveloped for the purpose??? And what is the "GHC"??? I ama total dummy in C-related things (if this is the case)........... |
|
|
Arnold Fribble
Yak-finder General
1961 Posts |
Posted - 2004-01-11 : 11:44:59
|
Haskell is a functional programming language. GHC is Haskell compiler -- in fact, GHC stands for 'Glasgow Haskell Compiler'. It just happens to support bignum arithmetic out of the box, it's installed on this computer, and writing a factorial program is trivial. Yes, I would expect to get better performance out of a C bignum library, but it would have taken longer to find out than I could be bothered.But it's not really going to make much difference: what will make the difference -- to both your result and mine -- is a faster algorithm! |
|
|
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-11 : 12:37:43
|
It's almost exactly my case: Common Lisp interpreter by Xanalys Corp.And my factorial "programs" look like:(setq w 1)(setq q 1)(dotimes (n 9999 t) (setq q (+ q 1)) (setq w (* w q)))(setq q w)or(setq n 1)(loop for i from 1 to 10000 do (setq n (* n i)))(setq i n)It's still above my head why they implemented this possibility........PS I don't think it can be beaten neither by Java nor C...... |
|
|
Stoad
Freaky Yak Linguist
1983 Posts |
Posted - 2004-01-11 : 12:47:39
|
Oh.. Arnold.. I missed your "edited" additionand not quite sure what you mean by that.. |
|
|
|