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.
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. :)
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.
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.