mutian / Sublime-CSS-Format

CSS Formatting for Sublime Text
http://mutian.github.io/Sublime-CSS-Format/
MIT License
98 stars 27 forks source link

Make module for css formattin #9

Closed Alexey-T closed 10 years ago

Alexey-T commented 10 years ago

hi. css_format.py file. It's bad that all stuff is in ONE file, together with ST stuff/crap. I don't need ST stuff, but want to user ur formatter in py program.

So can u make a module, with 3 functions (expand, compact, compress), or maybe one function compress(text, mode) with argument mode (3 values). Would be good.

mutian commented 10 years ago

If you want to use this formatter, copy the functions end with _rules, and run as process_rules(code, action).

Alexey-T commented 10 years ago

Better have READY module. just import it, and call function... so i don't need to copy/paste any funcs.

mutian commented 10 years ago

OK, I made a module, you can just import it.