Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Forum ➜ Suggestions ➜ A bad code messed up text

A bad code messed up text

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Greven   Canada  (835 posts)  Bio
Date Sat 02 Oct 2004 03:03 AM (UTC)

Amended on Sat 02 Oct 2004 03:07 AM (UTC) by Greven

Message
I entered by mistake [/code] as the open [code] tag, and it made the text look quite wierd.

This is before the [/code].This is after the closing [/code] tag with no opening one.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Sat 02 Oct 2004 08:36 AM (UTC)

Amended on Sat 02 Oct 2004 08:37 AM (UTC) by David Haley

Message
test


I suspect that [/code] simply inserts "</font></code></pre>" into the text, which is why the font size would be changed.


EDIT:

Yes indeed, look at the HTML source:
<font size=2><pre><code><font size=2>test</font></code></pre>

To fix this it'd probably be enough to only do code replacement if they're properly formed i.e. [code]...[/code].

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 05 Oct 2004 02:20 AM (UTC)
Message
The forum does not do "smart" tag processing, it simply replaces [code] with one sequence, and [/code] with another, as Ksilyan suggested. Thus, if you close out of sequence it will be mildly wrongly displayed.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #3 on Tue 05 Oct 2004 02:51 AM (UTC)
Message
Not really an issue, I just wasn't sure if it had ever been noticed.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,738 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.