Git Product home page Git Product logo

sublimecsstidy's Introduction

SublimeCSSTidy

CSS code formatter for Sublime Text 2

What is does

SublimeCSSTidy is a Sublime Text 2 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 (the exe isn't recommended for CSS3, take care).

SublimeCSSTidy adds three commands to the Sublime Text 2 command palette:

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

The last one uses the default template, which is a decent balance of 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).

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.

sublimecsstidy's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.