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

Tidy​HTML5

by Warin ST2

Cleanup you html files with SublimeTidyHTML. Parse your files with W3C's tidy-html5 locally. No php required nor webservice call.

Details

  • 2013.03.07.21.19.08
  • github.​com
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 11 years ago

Installs

  • Total 37K
  • Win 19K
  • Mac 14K
  • Linux 4K
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

TidyHTML Plugin for Sublime Text 2

Cleanup and reindent a saved file with TidyHTML. No php, no webservice required.

Installation

  1. Open the Sublime Text 2 Packages folder
    • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
    • Windows: %APPDATA%/Sublime Text 2/Packages/
    • Linux: ~/.Sublime Text 2/Packages/
  2. clone this repo and rename it to TidyHTML5
  3. edit the TidyHTML.sublime-settings (via Preferences > Package Settings > TidyHTML > Settings - User) according to your desired settings (see http://w3c.github.com/tidy-html5/quickref.html for more details)

via Package Control:

  1. Open the Package Control Palette (Command+shift+P)
  2. Select the Package Control: Install Package entry
  3. Select the TidyHTML5 Package
  4. Restart SublimeText if needed

Commands

Via the Command Palette

  1. Ctrl (Win)|Command (OSX) + Shift + P to open the Command Palette then
  2. type TidyHTML to convert characters to their HTML entity

Via Keyboard Shortcut

  • OSX: Command + alt +h
  • Windows: Ctrl + alt + h

Dependencies

Based on https://github.com/w3c/tidy-html5

Version History

  • 1.1.0: Rewrote the settings file to support a user defined extensions list
  • 1.0.1: Bugfix in the command file
  • 1.0.0: Initial release