mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(edit) emmet: add css suport
This commit is contained in:
parent
156d8f4ea9
commit
f15b71f487
1 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
}
|
||||
|
||||
this.show = function(pValue) {
|
||||
var lMode, htmlMode,
|
||||
var lMode, htmlMode, cssMode,
|
||||
lName = Info.name,
|
||||
isDir = Info.isDir,
|
||||
lExt = Info.ext;
|
||||
|
|
@ -66,10 +66,11 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
lMode = Modelist.getModeForPath(lName).mode;
|
||||
|
||||
htmlMode = Modelist.modesByName.html.mode;
|
||||
cssMode = Modelist.modesByName.css.mode;
|
||||
|
||||
Session.setMode(lMode);
|
||||
|
||||
if (lMode === htmlMode)
|
||||
if (lMode === htmlMode || lMode === cssMode)
|
||||
DOM.jsload(DIR + 'emmet.js', function() {
|
||||
var Emmet = ace.require("ace/ext/emmet");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue