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 98K
  • Win 49K
  • OS X 35K
  • Linux 14K
Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 4 50 52 36 41 49 23 25 35 42 31 53 41 34 34 46 26 42 46 47 27 46 42 59 49 40 50 30 38 39 43 48 53 55 41 29 47 80 61 52 32 30 34 34 50 54
OS X 3 16 21 24 31 30 17 15 30 29 27 26 13 11 13 30 22 31 31 27 11 17 24 29 29 28 27 15 16 25 25 33 42 23 15 20 30 47 30 29 23 10 18 13 19 16
Linux 1 11 18 12 16 16 3 12 12 5 10 12 10 6 9 17 17 9 13 13 7 5 7 19 11 17 14 8 7 6 22 13 15 16 14 7 16 31 10 13 10 14 10 17 7 3

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-html-tidy

Build Status

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!