Used CodeMirror for text editing and UI improvements.