M
M
monochromer2015-02-24 18:36:47
css
monochromer, 2015-02-24 18:36:47

How to create an emmet snippet for Brackets with multicursor support?

Hello!
The goal is to create an html view structure

<!-- ${cursor} -->
    <div class="${cursor}"></div>
<!-- end ${cursor} -->

so that there is a cursor in the ${cursor} places and it would be possible to write text at the same time.
But in the Brackets editor, the cursor becomes only one position.
The snippet itself looks like this:
"di": "<!-- ${cursor} -->\n\t<div class=\"${cursor}\"></div>\n<!-- end ${cursor}-->"

There is a similar snippet for Sublime text :
<snippet>
  <content><![CDATA[
<!-- begin $1  -->
<div class="$1">
  $2
</div>
<!-- end $1 -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>di</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question