ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-html-tidy

by SublimeLinter ST3

SublimeLinter 3 plugin for html tidy.

Details

Installs

  • Total 80K
  • Win 39K
  • OS X 30K
  • Linux 11K
Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 9 50 66 45 27 56 54 66 52 59 48 44 56 53 64 49 52 22 27 34 34 37 43 39 34 28 29 49 50 56 49 40 34 35 50 41 73 44 42 31 52 45 70 60 35 37
OS X 4 26 23 14 16 31 44 27 37 29 15 20 25 28 37 33 17 12 14 23 24 23 24 20 19 18 11 30 31 26 31 26 15 27 26 39 29 19 15 20 36 29 34 29 10 19
Linux 0 19 13 10 11 13 6 11 17 8 3 7 9 13 18 10 11 2 9 9 10 2 8 5 4 9 12 7 6 11 5 7 5 11 5 10 13 14 8 7 15 15 14 12 6 13

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-html-tidy

This linter plugin for SublimeLinter provides an interface to tidy (either the html4 or html5 version). It will be used with files that have the “HTML” syntax.

Installation

SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions here.

Linter installation

Before installing this plugin, you must ensure that tidy or tidy5 are installed on your system. If both are installed, tidy5 will be utilised.

  • Mac OS Xtidy comes preinstalled on recent versions of Mac OS X. You can install the html5 version by using Homebrew and brew install tidy-html5, or it can be built and installed from source.

  • Linux – You should be able to install tidy using the system’s package manager. For example, on systems which use APT (such as Debian or its derivations), tidy can be installed with sudo apt-get install tidy. The experimental html5 version can be built and installed from source.

  • Windows – Windows binaries are available for both the stable, and experimental html5 versions.

Linter configuration

In order for tidy to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.

Once tidy is installed and configured, you can proceed to install the SublimeLinter-tidy plugin if it is not yet installed.

Plugin installation

Please use Package Control to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.

To install via Package Control, do the following:

  1. Within Sublime Text, bring up the Command Palette and type install. Among the commands you should see Package Control: Install Package. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.

  2. When the plugin list appears, type html-tidy. Among the entries you should see SublimeLinter-html-tidy. If that entry is not highlighted, use the keyboard or mouse to select it.

Settings

For general information on how SublimeLinter works with settings, please see Settings. For information on generic linter settings, please see Linter Settings.

tidy must be configured via command line arguments. You can use the "args" linter setting to pass arguments to tidy.

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the plugin repository.
  2. Hack on a separate topic branch created from the latest master.
  3. Commit and push the topic branch.
  4. Make a pull request.
  5. Be patient. ;-)

Please note that modifications should follow these coding guidelines:

  • Indent is 4 spaces.
  • Code should pass flake8 and pep257 linters.
  • Vertical whitespace helps readability, don’t be afraid to use it.

Thank you for helping out!