* added overwrite prevention to saving
* rearranging order of require variables and edit to rename
* added documentation, and fixed reload button
* followed suggestion by tom, started tests
* Revert "followed suggestion by tom, started tests"
This reverts commit 4d45ec7c1b6da51d3e1d4140b174b6f237ea2133.
* added back in reverted changes to editor.js
* Fix broken reference to 'this'
One mode definition file can contain different modes, e.g. clike includes C, C++,
C#, Java, and a few others. We need to use the mime type to distinguish which one
we want.
Closes gh-2737
When the language is selected manually, record the file extension and choice in config
so that future files opened with the same extension use the same mode.
This allows users to teach the editor about file extensions CodeMirror doesn't know about.