Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Scss personals Snippets #25

Open
mistergraphx opened this issue Oct 16, 2018 · 0 comments
Open

Scss personals Snippets #25

mistergraphx opened this issue Oct 16, 2018 · 0 comments

Comments

@mistergraphx
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant