Merge pull request #1355 from ajaxorg/highlighting/tmmodes
add several new modes autoconverted from textmate
This commit is contained in:
commit
28c810bbce
62 changed files with 5418 additions and 284 deletions
|
|
@ -489,7 +489,7 @@ event.addListener(container, "drop", function(e) {
|
|||
if (window.FileReader) {
|
||||
var reader = new FileReader();
|
||||
reader.onload = function() {
|
||||
var mode = modelist.getModeFromPath(file.name);
|
||||
var mode = modelist.getModeForPath(file.name);
|
||||
|
||||
env.editor.session.doc.setValue(reader.result);
|
||||
modeEl.value = mode.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue