L
L
Lorem Ipsum2015-01-15 15:57:44
HTML
Lorem Ipsum, 2015-01-15 15:57:44

How to edit html code in sublime text 3?

Please tell me, is it possible to make a readable html code from html in one line using sublime text 3?
example:

<!--html в одну строку-->
<div class="container"><div><ul><li><a href="#" title="">Lorem 1</a></li></ul></div></div>

<!--читабельный html-->
<div class="container">
  <div>
    <ul>
      <li><a href="#" title="">Lorem 1</a></li>
    </ul>
  </div>
</div>

It is by means of sublime text 3. Thanks in advance! :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2015-01-15
@GeorgeGeorge

There is a plugin called TAG
After installation, the menu item will appear Edit => Tag => Auto-Format Tags on Selection (hot keys Ctrl + Alt + F)
Select the desired code, press Ctrl + Alt + F - profit
UPD Here is a video in which they tell how to install Tag and 9 more cool plugins

I
Igor Vorotnev, 2015-01-15
@HeadOnFire

https://github.com/victorporof/Sublime-HTMLPrettify
https://github.com/akalongman/sublimetext-codeformatter
https://github.com/rareyman/HTMLBeautify
In general - https://www.google.com/ search?q=html+beautifier+su...

Z
Zlatoslav Desyatnikov, 2015-01-15
@pxz

There is a plugin like this, HTML-CSS-JS Pretify. From the name, I think everything is clear.
There are indentation settings and everything you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question