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
➜ Forum code causing problems with programming code
Forum code causing problems with programming code
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Sun 09 May 2004 08:59 PM (UTC) Amended on Sun 09 May 2004 09:00 PM (UTC) by Zeno
|
Message
| Eh, here's what I mean. I use {code} to start it, but in the code is {i} like this:
title_table[index]{i}[0] = str_dup( "Not set." );
So it reads it as italics. If there isn't a way already, can you create a way to somehow fix this?
Note, I changed [ to { etc. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Mon 10 May 2004 04:40 AM (UTC) Amended on Mon 10 May 2004 04:41 AM (UTC) by David Haley
|
Message
| Just do this:
\[i\]testing\[/i\]
[i]this is not italics[/i] this is italics |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #2 on Mon 10 May 2004 04:47 AM (UTC) Amended on Mon 10 May 2004 04:55 AM (UTC) by Flannel
|
Message
| the purpose of the code tag is so that you can simply paste something, and have the forum not evaluate it. So you dont need to escape things.
So, they shouldnt be bolded, italicized, or underlined for that matter.
At least, thats how I understand it should work nick. Since the purpose of posting code is to display. I suppose you could also argue that allowing bold and such allows you to emphasise parts of your code.
However, you could also just use non coded. Although that doesnt preserve spaces.
Perhaps we could have a "literal" code nick? Monospaced, preserves spaces, and stops all other evaluation? That would be the only real way to do it I suppose. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Mon 10 May 2004 06:20 AM (UTC) |
Message
| Personally I would rather keep code as it is, and put in a "literal" tag as you suggested. I like being able to emphasize parts of my code if need be, even if I admit that it can be irritating sometimes to have to go in and change the \[i\] arrays. :) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 10 May 2004 06:33 AM (UTC) |
Message
| At present, for simplicity, the forum codes are simply replaced on a case-by-case basis. For instance, every instance of [b] becomes <b> (ie. becomes HTML).
Thus, [code] becomes <pre><code> (I think). It does not easily recognise that stuff is *inside* a code block. To convert existing code use the "quote forum codes" command in the MUSHclient notepad, that will convert a batch of code in a single operation. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Mon 10 May 2004 11:22 AM (UTC) Amended on Mon 10 May 2004 11:23 AM (UTC) by Zeno
|
Message
| Ah, makes sense. But the problem is, if I post a large code, and it has many [i] in it, I'd have to edit them all. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #6 on Mon 10 May 2004 01:49 PM (UTC) |
Message
| That what Nick was refering to. The quote forum code function in mushclient will do that all for you automatically. You paste in your raw code, and it adds the \[i\] for you. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #7 on Mon 10 May 2004 07:10 PM (UTC) |
Message
| But the thing is, not everyone has MUSHclient, and not everyone is willing to get it just for using that function. But thats just my thought. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #8 on Mon 10 May 2004 09:49 PM (UTC) |
Message
| Well, you could get it for that purpose, and wait for the nag screen to timeout, and then leave it running.
Another alternative is to simply use any editor to replace:
\ with \\
[ with \[
] with \]
Some editors would let you script a simple replacement like that. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Tue 11 May 2004 01:39 AM (UTC) |
Message
| Yeah such as UltraEdit. But there's no way to have HTML/php/cgi do that here? It could be useful for some people I guess. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | 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.
20,497 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top