Updated the interface a little. Trying to figure out a mechanism that allows toggling between <code> and <textarea> dynamically, while preserving cursor position.