PDA

View Full Version : [fixed] Left curl bug in PHP tags



MarcHanlon
Fri 22nd Feb '02, 3:06pm
Inside PHP tags the left curl should work but it doesn't, this confuses postings of PHP code.

e.g.


if (1 = 1) {
// The curl above won't display correctly
}


Sorry if this has already been pointed out...I had a quick look but no one seemed to have mentioned it.

JamesUS
Fri 22nd Feb '02, 4:47pm
It seems to be working fine in ths post :)



if ($test == "test") {

echo "hello";

}

MarcHanlon
Fri 22nd Feb '02, 4:50pm
It only happens when you check disable smilies in this post.

Still a bug if you ask me but only a very small one.

Marc.

tubedogg
Fri 22nd Feb '02, 7:46pm
The reason is when you disable smilies you are also disabling Replacements which (for all the default ones at least) use { and } around them. So it is converted into the { so the program doesn't see it as a replacement (at least off the top of my head I believe that's how it works) and with <code> I bet it's not parsed as HTML like normal.

The basic idea of the long-winded rambling post is that it is a bug...Moving...

John
Fri 1st Mar '02, 11:04am
Fixed