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