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 91K
  • Win 45K
  • OS X 33K
  • Linux 13K
Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9
Windows 24 34 45 43 53 34 31 40 41 42 45 46 28 29 44 72 41 53 32 29 29 41 41 47 56 45 28 25 44 49 41 53 45 28 42 55 55 45 57 49 31 31 43 42 57 44
OS X 12 23 26 23 27 10 20 29 22 32 19 29 9 9 26 29 17 27 21 13 7 18 33 26 33 23 15 16 19 33 26 19 21 12 12 36 28 25 28 33 15 14 19 30 42 24
Linux 2 21 10 8 14 9 8 14 13 10 9 15 8 12 13 16 13 10 8 5 3 16 18 15 12 7 9 7 8 12 10 12 15 9 7 19 7 11 13 15 4 0 9 10 10 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!