views:

878

answers:

5

I can't find a css formatter (web based or Windows app) which formats the css where it puts the open brace on its own line aligned with its close brace, plus indents the attributes. The web based css formatters out here seem to be based on CSSTidy which doesn't do what I want.

I don't like this CSSTidy format:

.example {
font-size: 3em;
}

I want:

.example
{
    font-size: 3em;
}
A: 

Are you looking for a stand-alone tool?

roosteronacid
Online or stand-alone. Should be configurable to a big degree. For example I like 2 blank lines between classes or id's.
Abdu
+6  A: 

Try this.

VirtuosiMedia
+3  A: 

you do know that you can modify the tpl files to make the modification you are looking for in CSSTidy?

stephenbayer
I am using online ones.
Abdu
+2  A: 

If that's your only beef with CSSTidy, you can always modify it to do that one little thing; and still take advantage of its other features (which may be lacking in other products).

Tom Ritter
+2  A: 

What you want is the 'GNU' style; Use ProCSSor, its great.

Nimbuz