Last time I used it, the on-line article editor had two modes (WYSIWYG and HTML), switchable through a <> widget. I suggest you paste your HTML-encoded code (which means < for < and similar for > and &) inside PRE tags while the editor is in HTML mode. What I normally do is edit the article off-line, then paste it all in one go in the empty editor, again in HTML mode. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.