Sublime Forum

Emmet: interference from snippets.json

#1

I am trying to set up a snippets.json file with custom codes to supplement the stock syntax, and it works, but it interferes with other Emmet syntax:

  1. I made new file: snippets.json
  2. Folder location: C:\Sublime Text\Data\Packages\Emmet\emmet
  3. Simplified snippets.json file content: (problem occurs regardless of how many/few lines are used in snippets)
    {
    “html”: {
    “filters”: “html”,
    “profile”: “html”,
    “snippets”: {
    “d_test”: “
    test content

    }
    }
    }

So, this is successful: when I type “d_test” and press TAB it expands to:

test content

The problem is that when the snippets.json file is present, it affects how Emmet expands its regular syntax because the results are bloated with the word “undefined”.
ie. when I type “div>div” it expands to:

undefined

Or when I type “div>ul>li” it expands to:

undefined
    undefinedundefined
  • undefined

Is there a way to supplement Emmet with a snippets.json file without affecting the way it expands stock syntax?
I am running Windows XP

0 Likes