I am currently collecting stories on a website and I do not know how to make it preformat paragraph breaks. Anyone know?
A little more info, please.
What do you mean by “it” and what do you mean by “preformat”? Are you using an HTML editor or writing your own code?
The code for a paragraph break is <P> if that’s all you’re asking.
preformat=<pre>
Well I am mass copying stuff from a forum to text to put on my website. What I wanted to know was is possibly any way to make it so I don’t have to put a <p> after every paragraph(there are quite alot of them:))
writing my own code
If you are using <pre>, putting <p> tags in won’t do anything. The text will be formatted exactly as it was in the original, including line breaks and whitespace.
You could write a perl script that would place a “<P>” after every newline character in the text file.
Manduck I assumed thats what would happen. However it didn’t. It removed all spaces like
that.
Well I’ll be darned. Maybe try <XMP> then.
Wait a sec - I just tried out <pre> here and it preserved my line breaks and everything, the way it should. Could you be more specific about what effect you want, and what exact problem you’re having?
Yeah, <pre> should do the trick. Care to let us take a look at it?
Curious, ain’t it?
Try <code> or <tt> - it’s been too long for me to remember exactly how this works. Last time I played with HTML was probably 2 years ago.
I recall that <pre> is supposed to do this but it doesn’t. I also vaguely recall never being able to do exactly what I wanted to do, so you may be SOL.
try <dd>
It does a break and an indention. I’ve never seen this tag referenced anywhere, but hey, it works.