This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Miscellaneous » Add a PHP Tag
Add a PHP Tag [message #69408] Wed, 07 January 2009 19:50 Go to next message
Seikilos  is currently offline Seikilos
Messages: 609
Registered: May 2008
Location: Germany
Faithful Member
Hi,
some of us already realized, that there is a PHP Tag that do some fancy highlighting and some of us are already using it.

But there is some bug in it, if you edit the post and submit it again, you get some nice code salad.

Just as a test I will post this code here twice, once in this post and the second one as an additional post which I edit

<?php
  
// Some comments
  
echo "Hello World!";
?>


Debugging is all I doֻ (if these dots are not in line then your screen is broken)
Re: Add a PHP Tag [message #69409 is a reply to message #69408 ] Wed, 07 January 2009 19:50 Go to previous messageGo to next message
Seikilos  is currently offline Seikilos
Messages: 609
Registered: May 2008
Location: Germany
Faithful Member
And now again with edit

<?php
��
?>
<span style="color: #FF8000"> //&nbsp;Some&nbsp;comments&nbsp;&nbsp;[/nota g] <span style="color: #007700">echo&nbsp;[/notag]<span style="color: #DD0000">"Hello&nbsp;World!"[/notag]<span style="color: #007700">;[/notag]<span style="color: #0000BB">?>[/notag]
[/notag]
</code>[/notag]

Edit Smile

[Updated on: Wed, 07 January 2009 19:51]


Debugging is all I doֻ (if these dots are not in line then your screen is broken)
Re: Add a PHP Tag [message #69427 is a reply to message #69408 ] Wed, 07 January 2009 22:33 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yep. I guess it's a bug in the forum software. Solution: copy your PHP code *before* you press edit, then delete the code mess, and insert it again in [php] tags, do your editing, then submit. Bit of a pain, so I often just use [code] tags these days.


Remember Palestine
Re: Add a PHP Tag [message #69428 is a reply to message #69408 ] Wed, 07 January 2009 22:34 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
(Maybe someone could have a look at newer versions of this forum, to see if this bug has been resolved? Fabien and colleagues might be persuaded to upgrade).


Remember Palestine
Previous Topic:Post job
Next Topic:PHP and APC
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software