CSSTidy
Sublime Text package for tidying CSS.
Details
Installs
- Total 37K
- Win 18K
- Mac 15K
- Linux 4K
Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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)