Re: Compressing CSS (single-line rules)

"Niko Sams" <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Message-ID <[email protected]>
Hi,

You create yourself a simple user script that does this compressing.
A few regular expressions will do the job.
You can then integrate this user-script perfectly into quanta.

Niko

On Sun, Oct 5, 2008 at 5:09 PM, Rudy - Italy <[email protected]> wrote:
>
> Hello,
>
> At home I Quanta is my only choice for editing CSS, at work I have to use
> Windows and Topstyle. However there is a handy feature called "Style
> Sweeper" in Topstyle, I wondered if it is possible to achieve a similar
> functionality in Quanta. It would be enough to convert a stylesheet like
> this:
>
> #bar, #foo {
>  bar: foobar;
>  bar2: foobar2;
> } /* Foo Bar */
>
> .foo2 {
>  bar2: foo;
> }
> ...
>
> into this:
>
> #bar,
> #foo { bar:foobar; bar2: foobar2; } /* Foo Bar */
> .foo2 { bar2: foo; }
> ...
>
> without all the silly stuff like combine rules etc. which only messes up the
> code. Simply remove newlines from the rules, and every rule in a single
> line, possibly available by keyboard shortcut. Is there a way to easily
> integrate such functionality?
>
> Thanks for any help,
> Rudy
>
>
> --
> View this message in context: http://www.nabble.com/Compressing-CSS-%28single-line-rules%29-tp19825437p19825437.html
> Sent from the quanta-user list2 mailing list archive at Nabble.com.
>
> _______________________________________________
> Quanta mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/quanta
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.