Forum:How can I prevent some tags from escaping the code block?

When I try to put a code (HTML for example) into an article, the "code/preformatted" style does not work with codes containing tags. Due to some strange reason, engine treats them as wiki tags, ignoring the fact they are inside the "preformatted" block.