How to write a comment with Emmet plugin in Sublime?

Im using Sublime 2 with the Emmet plugin. Is there a way to write a comment with coding speed that could cause me something like this:

<div class="container"> Lorem ipsum </div> <!-- custom comment --> 

I tried

div.container

And it does not work.

Is it possible to add comments to each div element or element created using high-speed coding fragments?

+6
source share
2 answers

You can write a quick comand c + tab for a simple comment, or you can write in this form c {my comment} + tab to add text to comment tags

+6
source

Use filters:

 div>div#page>p.title+p|c 

Link: http://docs.emmet.io/filters/

+2
source

Source: https://habr.com/ru/post/953441/


All Articles