How to write a comment with Emmet plugin in Sublime?

Menci picture Menci · Sep 8, 2013 · Viewed 7.9k times · Source

Im using sublime 2 with Emmet plugin. Is there a way to write a comment with speed coding that would produce me something like that:

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

I've tried

div.container

And it's not working.

Is it possible to add comments to each div or element created via speed coding snippets?

Answer

Endika Llonin picture Endika Llonin · Jun 30, 2015

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