473,387 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Tool for stripping space in CSS ?

Anyone have a recommendation for a tool (Perl script would be ideal) to
do the following:

- Take a CSS file and merge any @import statements.

- Whitespace compress and comment-strip the CSS

- Be reliable! i.e. it should take substantial commercial-scale CSS
files and process them reliably, without introducing further sources of
error.

Ideally it would also do the following:

- Have some means (embedded flag or whatever) to leave a single
version-control comment at the head.

- Either understand, or be controllable by embedded flags so as to not
disturb things like the Tantek Celik hack.
I suspect I'm going to have to write it, but it would be nice to find a
pointer to a pre-existing one. Thanks for any suggestions.

Sep 21 '05 #1
1 1587
TopStyle pro has some features like this in the 'style sweeper' menu...
worth checking out the free trial to see if it does exactly what you are
looking for.

--
--
Michael Evangelista
Evangelista Consulting, inc.
www.evangelistadesign.com
Custom Small Business Website Solutions
<di*****@codesmiths.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Anyone have a recommendation for a tool (Perl script would be ideal) to
do the following:

- Take a CSS file and merge any @import statements.

- Whitespace compress and comment-strip the CSS

- Be reliable! i.e. it should take substantial commercial-scale CSS
files and process them reliably, without introducing further sources of
error.

Ideally it would also do the following:

- Have some means (embedded flag or whatever) to leave a single
version-control comment at the head.

- Either understand, or be controllable by embedded flags so as to not
disturb things like the Tantek Celik hack.
I suspect I'm going to have to write it, but it would be nice to find a
pointer to a pre-existing one. Thanks for any suggestions.

Sep 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: Marek Kotowski | last post by:
I am looking for a tool to execute PHP scripts entered in a HTML form. For example: user is given a problem to solve. He writes a PHP script, sends it to a server, where it is executed and...
1
by: Andy Jefferies | last post by:
I'm having problems stripping out the whitespace at the beginning of a particular element. In the XML snippet I've highlighted tabs and returns as ^I and ^M respectively: <para> ^I ^I ...
11
by: Shiperton Henethe | last post by:
Dreamweaver 4 Hi Can anyone recommend a decent utility for compressing HTML that is safe - i.e. that *definitely* doesn't mess with the appearance in any browsers. I run a growing website...
1
by: dingbat | last post by:
Anyone have a recommendation for a tool (Perl script would be ideal) to do the following: - Take a CSS file and merge any @import statements. - Whitespace compress and comment-strip the CSS ...
3
by: Andy B | last post by:
I've tried using Trim or RTrim to strip trailing space characters from my data. When I check on the transformed data space characters are still there. We have an address table containing two...
17
by: clintonG | last post by:
I'm using an .aspx tool I found at but as nice as the interface is I think I need to consider using others. Some can generate C# I understand. Your preferences please... <%= Clinton Gallagher ...
2
by: Peter Rooney | last post by:
hi all, i'm working on a project where i'm marshalling xml files to java objects created with JAXB 1.0 from an xsd schema. the problem is that the marshalling fails (UnexpectedElementException)...
6
by: eight02645999 | last post by:
hi wish to ask a qns on strip i wish to strip all spaces in front of a line (in text file) f = open("textfile","rU") while (1): line = f.readline().strip() if line == '': break print line
6
by: sanjay | last post by:
Hi, Is there any tool that would do static detection (doesnt execute the application) of dead code for C++ application. Few tools do show which code flow would never get executed, but i am...
14
by: lagman | last post by:
All, I'm looking for a tool that is able to take my code base (which is full of preprocessor directives) and spit out source code that is "clean" of any preprocessor directives based on the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.