codemirror icon indicating copy to clipboard operation
codemirror copied to clipboard

Scss personals Snippets

Open mistergraphx opened this issue 7 years ago • 0 comments

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….

mistergraphx avatar Oct 16 '18 16:10 mistergraphx