On May 9, 7:29 am, Robert Huttinger <[email protected]> wrote: > ok after playing around I got the solution!! > > #! /usr/bin/perl > > use strict; > use warnings; > > while (<>){ > > s/([-a-z > ]+:([^link|visited|hover|active]))\s*(.*)/sprintf("%-32s",$1) . "$3"/ie; > print; > > }
Those are the most common pseudo classes, but there's many more: http://www.w3.org/TR/css3-selectors/#pseudo-classes You can also have chained selectors like: :target::before I've got a couple of perl filters that collapse and expand css that take more of the pseudo classes into account (the ones I commonly have in my CSS), might be useful: http://pangram.org/misc/css-expand.html http://pangram.org/misc/css-compact.html HTH, -S -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
