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

Scss personals Snippets  #25

@mistergraphx

Description

@mistergraphx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions