Idea: Use "ace" or VMware's new Node.js editor. https://github.com/ajaxorg/ace https://github.com/scripted-editor/scripted