codemirror
codemirror copied to clipboard
Scss personals Snippets
Hi,
I'm trying to use some personal snippets using the scss profile, but with no real success ^^
running this in a browser
// Init CodeMirror
editor = CodeMirror.fromTextArea(document.getElementById('code'), {
mode: 'text/x-scss',
profile: 'scss', /* define Emmet output profile */
});
// Add user Snippets
emmetCodeMirror.emmet.loadSnippets({
"scss": {
"snippets": {
'!': "!default",
'mix': "@mixin $1($2){\n|\n}",
'func': "@function $1($2){\n|\n}"
}
}
});
emmetCodeMirror(editor);
always return an error in console Cannot use 'in' operator to search for 'tag_case' in scss.
maybe it's just cause i'm using this in browser, or i've misunderstood something….