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
  • 19 minutes ago
  • 11 years ago

Installs

  • Total 37K
  • Win 19K
  • Mac 14K
  • Linux 4K
May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 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
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