Page 1 of 1

CSS pretty print

Posted: Tue Jan 24, 2006 3:43 pm
by Franck
First of all, I have just noticed the new wonderful CSS validation feature in v7, awesome (as that skateboard dud would say).

But now that my CSS is spotless, how can I control its format?

I like to have my classes like this:

td.clsTableTypeTwoTotalAmount
{
font-weight : bold !important;
border : none;
border-right : 1px solid #6176B9;
border-bottom : 1px solid #6176B9;
text-align : right;
}

th.clsTableTypeTwoBalanceTitle
{
background-color: #6176B9;
color : white;
padding : 0.1em;
font-size : 1.2em;
text-align : right;
}

so I'd need to be able to conserve break before and after the brace, put an arbitrary margin within the braces, and hopefully align all the values (either within the brace, or along an arbitrary tab...)

And completion hints would be nice too...

Cheers

Re: CSS pretty print

Posted: Wed Jan 25, 2006 7:07 pm
by sorin_ristache
Hello,
Franck wrote:I'd need to be able to conserve break before and after the brace, put an arbitrary margin within the braces, and hopefully align all the values (either within the brace, or along an arbitrary tab...)
We will consider allowing the user to configure the pretty-print operation for CSS files.
Franck wrote:And completion hints would be nice too...
Auto-completion is provided automatically for property values when you insert the : character. Also it is available on demand, you have to press Ctrl+Space to invoke it. For property names it is available only on demand (Ctrl+Space).

Regards,
Sorin