In the comments of the recent "CSS Order" poll, it was asked if there were any tools that can sort your CSS based on whatever settings you prefer (ie. alphabetized, by type, etc...).
Someone mentioned CSScomb, so i tried the Sublime Text 2 plugin, but it only gave me an error message, so I tried the CSSTidy plugin, which cleaned things up, but didn't sort anything. Years ago, I used a software package called TopStyle Pro that had the option to "sweep" up your CSS and sort everything in whatever order you specified, which was really nice.
My question now is if there are currently any similar tools/plugins that can do this? I usually use Dreamweaver or Notepad++/Sublime Text 2, so a plugin would be preferable. I like to use the Dreamweaver CSS dialog sometimes for convenience, but the code usually comes out sorted in whatever order it's entered, leaving me to clean things up manually, which can take some time. Thanks for any suggestions.
You could easily swap a line the value is on by pressnig: CTRL/CMD + SHIFT + UP/DOWN ARROW.
Edit: You could probably find a Sass plugin that does the property ordering for you or write one yourself. I'd imagine that would be easier than writing something yourself from scratch.
Someone mentioned CSScomb, so i tried the Sublime Text 2 plugin, but it only gave me an error message, so I tried the CSSTidy plugin, which cleaned things up, but didn't sort anything. Years ago, I used a software package called TopStyle Pro that had the option to "sweep" up your CSS and sort everything in whatever order you specified, which was really nice.
My question now is if there are currently any similar tools/plugins that can do this? I usually use Dreamweaver or Notepad++/Sublime Text 2, so a plugin would be preferable. I like to use the Dreamweaver CSS dialog sometimes for convenience, but the code usually comes out sorted in whatever order it's entered, leaving me to clean things up manually, which can take some time. Thanks for any suggestions.
If you work in Sublime and contain one css property per line:
You could easily swap a line the value is on by pressnig: CTRL/CMD + SHIFT + UP/DOWN ARROW.
Edit: You could probably find a Sass plugin that does the property ordering for you or write one yourself. I'd imagine that would be easier than writing something yourself from scratch.