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

CSSTidy

by fitnr ALL

Sublime Text package for tidying CSS.

Details

  • 2015.04.15.21.47.01
    2014.06.12.19.36.22
  • github.​com
  • github.​com
  • 9 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 37K
  • Win 18K
  • Mac 15K
  • Linux 4K
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 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14
Windows 0 0 0 0 0 1 2 1 0 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
Mac 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimeCSSTidy

CSS code formatter for Sublime Text

SublimeCSSTidy is a Sublime Text package for cleaning and tidying up your CSS. It's mostly a wrapper for the CSS Tidy PHP Library, but it will fall back on a bundled CSS Tidy executable for Windows users without PHP.

SublimeCSSTidy adds three commands to the command palette:

  • Tidy CSS (Highest Compression)
  • Tidy CSS (Low Compression)
  • Tidy CSS

The last command uses the default template, which balances readability and compression. If you can decipher the complicated pattern for creating custom formatting rules, SublimeCSSTidy will happily use them. An example of a custom template file is included (template-medium.txt).

Windows Support

If you do not have PHP installed, SublimeCSSTidy will use a bundled version of CSS Tidy. This program is from 2007, and may not have complete support for all CSS3. Consider installing PHP.

Configuration

Check out csstidy.sublime-settings for a documented list of options.

Installation

With Package Control

If you have Package Control installed, you can install SublimeCSSTidy from within Sublime Text 2. Open the Command Palette and enter “Package Control: Install Package”, then search for CSSTidy.

Without Package Control

Clone the repository into your Sublime Text 2 packages directory:

git clone git://github.com/fitnr/SublimeCSSTidy.git

Without Package Control or Git

Go to the download section and download the package. Unzip it, rename the folder CSSTidy and move it into your Sublime Text 2 packages directory (Preferences > Browse Packages in the menu)

Problems?

Submit an issue.