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

CSSTidy

by fitnr ST2/ST3

Sublime Text package for tidying CSS.

Details

  • 3 2015.04.15.21.47.01
    2 2014.06.12.19.36.22
  • github.​com
  • github.​com
  • 3 years ago
  • 24 minutes ago
  • 5 years ago

Installs

  • Total 33K
  • Win 15K
  • OS X 14K
  • Linux 4K
Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 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
Windows 2 4 3 1 1 2 3 4 3 6 2 4 6 8 4 5 4 1 2 4 5 2 2 5 2 4 2 0 2 6 5 1 1 3 7 1 6 0 2 3 2 1 3 1 7 3
OS X 1 4 5 1 1 1 2 4 2 6 4 2 3 5 1 3 0 0 0 1 2 4 3 2 0 1 2 2 1 2 6 2 3 6 4 3 4 1 3 1 1 1 2 4 2 1
Linux 0 1 2 1 2 0 0 0 1 2 1 0 0 0 1 1 0 0 1 1 2 0 0 0 0 0 0 1 1 1 0 0 0 1 2 1 1 2 2 1 2 0 2 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.