correct editor's mode when editing javascript
This commit is contained in:
@@ -606,7 +606,7 @@ def edit():
|
||||
elif filename[-4:] == '.css':
|
||||
filetype = 'css'
|
||||
elif filename[-3:] == '.js':
|
||||
filetype = 'js'
|
||||
filetype = 'javascript'
|
||||
else:
|
||||
filetype = 'html'
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
return marker;
|
||||
}
|
||||
|
||||
{{if filetype in ('html', 'js', 'css'):}}
|
||||
{{if filetype in ('html', 'javascript', 'css'):}}
|
||||
// must be here or break emmet/zencoding
|
||||
CodeMirror.defaults.extraKeys["Ctrl-S"] =
|
||||
function(instance) {
|
||||
|
||||
Reference in New Issue
Block a user