Skip to content

Html Syntax Checker

Iury de oliveira gomes figueiredo edited this page Sep 15, 2019 · 2 revisions

Tidy

A vy plugin to find errors in html files using Tidy.

The Tidy plugin uses Tidy to perform html checking. Once Tidy runs on the current AreaVi instance it displays all errors/warnings it finds in the opened html file.

Dependencies

Check how to install tidy for your platform.

https://sourceforge.net/projects/tidy/

Install

Then place the following lines in your ~/.vy/vyrc file in the Extra plugins section:

# You may need to setup tidy path here depending on your installation.
# But if tidy is available in the environment then no need to uncomment this line.
import tidy
# tidy.HtmlChecker.PATH = '/path/to/tidy'
autoload(Tidy)

Usage

Start the editor and open some html file with errors then press:

<Key-at>

Note: The above event happens when the key with symbol @ is pressed.

The keycommand will put the current AreaVi instance in HTML mode. Press the following keystroke in order to run Tidy on the opened file:

<Key-h>

It would display all errors in the html file. You can jump to the error line by pressing:

<Return>
Clone this wiki locally