Closed jeanCarloMachado closed 6 years ago
I have a similar problem. Instead of using a separate file, I have defined snippets inside my .vimrc, but the effects are the same:
I have:
let g:user_emmet_settings = {
\ 'html': {
\ 'snippets': {
\ "mdelem": "<!-- .element: class=\"${class}|\" -->",
\ }
\ },
\}
When I expand mdelem.foo
I get:
<!-- .element: class="${class}" -->
I also tried using ${id}
instead, but it also did not work.
Now added feature both should work.
I pulled the changes and it is not working for me. Maybe it works to html only? Should I do something special to make class and id identifiers work in other languages?
please put :
before name like ${:id}
.
Here's my snippet config
Using it like this:
I get the following:
The
${id}
should be replaced bymyVar
right?Using like this:
fun>if[id=myVar]>foreach
i get the same problem.Best