PDA

View Full Version : Why we get........w.....i.....d.....e.......posts



Billy T
24-05-2003, 08:37 PM
Hi Team

Wide posts are caused by a unique characteristic (or flaw) in the Forum software which means that text enclosed by the [- pre] tags do not word-wrap. You have to manually enter carriage returns every 10 or so words to keep the post width normal.

Have a play by typing a few sentences into a post window preceded by [-pre] (but without the hyphen) then previewing and you will see what I mean.

BTW, if you are at the end of your post, you don't need the closing tags so [-pre][-b] will produce the same result as a string closed by [-/b][-/pre] Everything after the tags will be formatted. :)

Cheers

Billy 8-{)

whiskeytangofoxtrot
24-05-2003, 08:41 PM
Did you know that the aforementioned forum software puts your name just to the left of every single post you make to save you typing it every time?

Just FYI

-=JM=-
24-05-2003, 09:05 PM
> Wide posts are caused by a unique characteristic (or
> flaw) in the Forum software which means that text
> enclosed by the [- pre] tags do not word-wrap. You
> have to manually enter carriage returns every 10 or
> so words to keep the post width normal.

I don't think it is a bug it is actually a function. The idea is that it doesn't wrap lines. So that programming code will come out how it is intended instead of the lines being all jumbled up.

> BTW, if you are at the end of your post, you don't
> need the closing tags so [-pre][-b] will produce the
> same result as a string closed by [-/b][-/pre]
> Everything after the tags will be formatted. :)

Billy you should ALWAYS close the tags. Otherwise peoples "reply with quote" will come out not how they're expecting it. I've noticed this in a few posts.

FYI: it is possible to use <code> instead of <pre>

Billy T
24-05-2003, 10:14 PM
Yes I know WTF, but the habit of signing off every communication is one I am unlikely to break.

Didn't know about the other problem caused by unclosed tags though. Can't say I've seen it, but then I might not have recognised it if I did.

BTW, is WTF really WTF? or does it have another meaning.:D

Cheers

Billy 8-{)

cappuccino
24-05-2003, 10:18 PM
> Billy you should ALWAYS close the tags. Otherwise
> peoples "reply with quote" will come out not how
> they're expecting it. I've noticed this in a few
> posts.
>
> FYI: it is possible to use <code> instead of
&gt; <pre>

Yeah Billy! How come you didn't know that? I thought you knew everything?
;-)

Billy T
24-05-2003, 10:46 PM
No cappy, you must have me confused with somebody else. I know a little about a lot, and a lot about a little, but in between there is a great divide.:8}

Story of my life :(

Cheers

Billy 8-{) :|

-=JM=-
24-05-2003, 10:55 PM
Oh and it seems there is a difference between code and pre tags. One has highlighting the other doesn't.



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title>This is a title</title>
</head>

<body>
<h1>This is the body</h1>



PressF1 Help Forum (http://www.pressf1.co.nz)

</body>
</html>


mmmm highlighting. Probably works better with php code or something at a guess though.

-=JM=-
24-05-2003, 11:11 PM
Or more something like this.

Seems they use it quite a lot over at the jive forums.



lass test {
void method() {
System.out.print("test");
}
}

or (int i=10; i>15; i--) {
String str = "Testing, 1, 2, 3";
blah = 42;
}

// multi-dim
a = 15;

// Does it keep the previous line and the next
// line which are both blank?

// comparisons
if (a<b && a>b && a < b && a > b)
{
a <<=1;
a >>=1;
a<<=1;
a<<=a;
}

println("good <font color="red">morning</font>");

or (int i = 0; "hello".length + i < 10; array+=i++);

char c = '\'';
String s = "\"";

String unclosedString = "line 1
line 2";

/* funny quote in terms of /* opening and */ closing */

// another /* funny */ quote

Billy T
24-05-2003, 11:27 PM
[pre][b]You lost me at jive forum:D

-=JM=-
24-05-2003, 11:43 PM
> [pre][b]You lost me at jive forum:D

Yeah I have no idea what much of that means either.
Just went to the forums to copy and paste something to show the syntax highlighting.

Oh and if all goes to plan this will come out in
pre and bold tags with out my doing so.

whiskeytangofoxtrot
25-05-2003, 02:35 AM
> BTW, is WTF really WTF? or does it have
> another meaning.

It just seemed appropriate based on the reading I'd done here before I started posting.

Billy T
25-05-2003, 12:35 PM
Yep, it did that alright, and the third line gives a perfect example of what my original post was all about. However, if you were using different code to that which PF1 uses, does that make a difference?

That also brings up the thought, could we customise posts on PF1 by using alternative code, or would that be a no no.?:|

Cheers

Billy 8-{)