search

Home  >  Q&A  >  body text

css - How to use vim to quickly detect errors in html

There is an error in the target file, line 4 a is not closed correctly

<p>
    <header>
        <ul>
            <li><a href=""><a></li>
            <li><a href=""></a></li>
        </ul>
    </header>
    <footer>
        <p></p>
    </footer>
</p>

How to quickly check it out in vim?

巴扎黑巴扎黑2774 days ago546

reply all(3)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 16:36:12

    I use this: https://github.com/vim-syntas...

    Can be detected

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 16:36:12

    vim8 or neovim can use asynchronous detection ale: https://github.com/w0rp/ale. After installing the html linter, opening html will automatically perform syntax checking.

    reply
    0
  • 黄舟

    黄舟2017-05-16 16:36:12

    I have installed ale. How can I explain how to install the html linter? ?

    reply
    0
  • Cancelreply