W3C home > Mailing lists > Public > www-style@w3.org > December 2005

Re: I Updated that CSS Formatter Page (Feedback Please)

From: Orion Adrian <orion.adrian@gmail.com>
Date: Tue, 13 Dec 2005 10:43:24 -0500
Message-ID: <abd6c8010512130743p54a51102kaf2b2f46adc467f6@mail.gmail.com>
To: www-style@w3.org

On 12/13/05, Lachlan Hunt <lachlan.hunt@lachy.id.au> wrote:
> Lonnie Best wrote:
> > I recently made a page that allows you to format your CSS by simply pasting
> > it into this box:
> >
> > http://www.lonniebest.com/FormatCSS/
> >
> > As a result of your *much appreciated* feedback, I have added an options
> > menu to accommodate the varying preferences that people have mentioned.
> Now that the alphabetising can be disabled, it may possibly be a useful
> tool.  One bug I found is that if there is a space between the value and
> semi-colon, the entire property is removed.
> try:
> foo { color: green ; }
> Look up the CSS test suite and find the tests that specifically test
> parsing, run them through your parser and make sure the results are as
> expected.  I suspect you may find quite a few other bugs.
> Other useful feature ideas:
> * Allow user to specify the number of spaces/tabs to insert.  Some
> people may like 1 tab, while others may prefer 2 spaces, 4 spaces or
> anything else.
> * Leave the alphabetising features unchecked by default.
> * Add an option to make lines wrap between properties, after a specified
> number of characters.  i.e. I like to format my CSS like this:
> foo bar baz { property-one: value; property-two: value;
>               property-three: value; property-four: value; }

Be careful about loading up too many formatting options. Perhaps being
able to have a couple of different formatting templates would be good,
but I shouldn't have to wade through a bunch of screens to make sense
of it.


Orion Adrian
Received on Tuesday, 13 December 2005 15:43:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:22 UTC