emmetio / emmet-atom

Emmet support for Atom
MIT License
764 stars 179 forks source link

Extend Emmet in Atom #407

Open iGadget73 opened 8 years ago

iGadget73 commented 8 years ago

I try to extend the (s)css snippets with some missing css3 attributes like pointer-events. So I put my "snippets.json" into my local user folder under OS X in a folder called emmet (= default path "~/emmet"). The docs say that this will override all definitions that are defined double in the emmet "snippets.json".

so my local snippets.json looks like:

{
    "css": {
        "snippets": {
            "pen": "pointer-events:none;",
        }
    }
 }

but no effects when writing "pen" in a (s)css file and pushing TAB doesn't do sh--! Any clues?!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30982852-extend-emmet-in-atom?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github).
sergeche commented 8 years ago

If this is the content of your snippets.json then this is invalid JSON: you should remove trailing comma after "pointer-events:none;" and try again (restart Atom)

iGadget73 commented 8 years ago

Hmm, afaik this shouldn't be a problem, in JS it isn't. And I followed your instruction, but it still doesn't work. No changes. Can I see somewhere if the file was loaded at all?!

sergeche commented 8 years ago

Hmm, afaik this shouldn't be a problem, in JS it isn't

It’s not JS, it’s JSON. You can open DevTools and check if there are any errors after you restart Atom