Hi. I am trying to make this web-based IDE work properly in Firefox: . This is what I have so far for Firefox: . The IE version adds a font tag before any angle brackets, making the tag turn green (thus providing a rudimentary form of color coding). But whenever I replace the text inside the div using JavaScript, Firefox (and Opera, incidentally) moves the cursor to the beginning of the text. IE moves it to the end whenever I replace the inner HTML, so the trick works for IE. Compounding the problem is the fact that I'm using a JavaScript method to make the div editable (document.getElementById("textArea").contentEditable = true. It's not a text area. Thank you for any help.