Giter Club home page Giter Club logo

csscomb-for-sublime's Introduction

CSScomb for Sublime Text 2 & 3

About

Tool for sorting CSS properties in specific order.

  • Sorting CSS properties. The order of properties in the help of professionals
  • Setting the order of CSS properties. Use the order to which you are accustomed to
  • Parsing CSS in the tags <style>, style="..." attribute. CSScomb find a CSS-code to other languages and will sort it
  • Formatting style sheets does not change. Work as a singleline and multiline CSS
  • Separation of CSS properties for the group. Separate groups of empty string if you want
  • Full support CSS2/CSS2.1/CSS3/CSS4 ;) CSScomb ready for the advanced CSS-code

The algorithm of CSScomb simulates web-technologists actions upon working with CSS-code to the limit. Usually to re-order code you move lines over each other considering comments in the code, multilines records of property values, hacks and everything that could be found in the real file. CSScomb reproduces these actions for you. This means that the parser "thinks" as a person editing the text, not as a blind robot parsing CSS.

For more info, online demo and tests see http://csscomb.com

The Requirements

CSScomb is written in pure PHP, without any external libraries or dependencies. See details at wiki.

Plugin usage

Select code and press ctrl+shift+c

Tip: Combine expand selection by indentation ctrl+shift+j with ctrl+shift+c to quickly
select all rules for current css selector and sort them with csscomb.

Custom sort order

Plugin allows to use your own sort order.

To customize it do following:

  1. Open default sort order: PreferencesPackage SettingsCSScombSort Order – Default
  2. Copy whole file content.
  3. Open user-defined sort order: PreferencesPackage SettingsCSScombSort Order – User
  4. Paste in this file.
  5. Change order how you want.
  6. Set custom_sort_order value to true

Issues & bugs

CSScomb tracker

Authors

CSScomb core: miripiruni, tonyganch

Sublime plugin: i-akhmadullin

csscomb-for-sublime's People

Contributors

i-akhmadullin avatar miripiruni avatar tonyganch avatar

Watchers

 avatar  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.