473,320 Members | 1,861 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,320 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 1584
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.