S
S
Senseich2019-04-22 02:20:34
Sublime Text
Senseich, 2019-04-22 02:20:34

How to auto nest tags in Sublime Text 3?

Guru sublima tell me how to me from this code:

<li class="top-menu__item"><a href="" class="top-menu__link">Style Demo</a></li>
<li class="top-menu__item"><a href="" class="top-menu__link">Full Width</a></li>
<li class="top-menu__item"><a href="" class="top-menu__link">Dropdown</a></li>
<li class="top-menu__item"><a href="" class="top-menu__link">Link Text</a></li>

Do this automatically:
<li class="top-menu__item">
    <a href="" class="top-menu__link">Style Demo</a>
</li>
<li class="top-menu__item">
    <a href="" class="top-menu__link">Full Width</a>
</li>
<li class="top-menu__item">
    <a href="" class="top-menu__link">Dropdown</a>
</li>
<li class="top-menu__item">
    <a href="" class="top-menu__link">Link Text</a>
</li>

I came across a video where this is done using the Prettify HTML-CSS-JS plugin, but it doesn’t specifically say how. Installed, tried all the settings, twisted, does not format nesting in the same way, only aligns the code.
Tell me, who worked with this plugin, how to do it or alternative solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chris, 2019-04-22
@tv_dakota

https://www.nobledesktop.com/blog/quickly-write-ne...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question