-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variables and new lines do not work with new version #136
Comments
Since snippets are aliases for Emmet abbreviations, you should wrap it’s contents with Also note it’s better to add such snippets as native ST snippets, not Emmet |
Thanks. So there is not an equivalent to old parameter and new line handling ? |
You can user variables like |
I tried but it doesn't work. Here is one of the old snippets I'm trying to make it work.
I call it like this: As you can see I use new lines to format the output as I want. Is this possible anymore? Thank you |
As I mentioned earlier, snippets are aliases to Emmet abbreviations so you should write snippet value as Emmet abbreviations. For arbitrary text, you should wrap contents with |
Thanks although I don't get what you mean :) I tried creating my abbreviations from scratch with the new logic but I can't. Older version was much easier to understand and work with. I think there should exist a backwards compatibility or at least a guide how to convert old abbreviations. Thank you anyway for your time. Appreciate it. |
Can you show me you full Emmet config with snippets? |
You mean the old one not working at all? The new one is almost empty since I'm trying to make at least one of my old abbreviations work like the one I posted above:
This used to work like this if I typed in:array.test$test1 I think I need just one to make it work so that I understand how things have changed. |
Looks like it it doesn’t work as expected in new Emmet. Will fix it later. For now, you can use native ST snippets instead |
Thank you! |
Hi.
I'm trying to convert my old snippets to the new format but some basic staff does not work anymore.
I need to access variables and insert new lines like the example shown here with the "for" abbreviation.
https://docs.emmet.io/customization/snippets/
"for": "for (var ${class} = 0; i < ${id}.length; ${class}++) {\n\t|}"
This does not work with emmet.
The text was updated successfully, but these errors were encountered: