F
F
freestm2017-06-15 15:12:07
Sublime Text
freestm, 2017-06-15 15:12:07

What is the name of the plugin for Sublime Text that automatically adds a comment at the end of the closing HTML block with classes and IDs?

something like this:

<div class="test">
<h1>Какой-то текст</h1>
</div><!-- test -->

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
flareair, 2017-06-16
@flareair

If you haven't tried it yet, then try Emmet.
He can do this:
Enter
Press Tab

<div class="container"></div>
<!-- /.container -->

D
Dmitry, 2017-07-01
@Odinokun

You can add such a snippet and immediately write opening, closing comments and the name of the class in the section/diva. (you need to write di in the right place and press TAB)

<snippet>
    <content><![CDATA[
<!-- begin #$1 -->
<section class="$1">
    $2
</section>
<!-- 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>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question