I've never heard anybody saying that Firebug is a good editor for
anything, for the simple reason that it isn't an editor - it's a
debugger, which is a very different thing.
WHen you consider the variety of ways in which a stylesheet might be
served, and the numerous different ways in which a server might
provide the option to change it, the idea of something running in the
browser being able to provide a general purpose solution becomes
clearly almost impossible, and certainly unwieldy.
For example, it may be that one user has to use FTP to upload a new
version of their stylesheet to the server as a text/css file. Another
user's CSS is generated dynamically by PHP, so the changes will have
to be saved as a PHP program - yet there is no way for Firebug to know
how to incorporate changes into such a program, and it will be
completely different for almost every such case. Or maybe I'm using my
hosting provider's web-based interface rather than FTP, so Firebug has
to construct an HTTP POST request in a very specific form and send it
to a specific URL, including logging me in to my account if necessary.
What if my CSS is generated by XSLT transforming an XML configuration
file which is generated from a database query? How is Firebug to know
that my change to a background-color value has to be written to a
particular column in a particular table in the database via an HTTP
POST, then a server-side process has to be started which queries the
database, converts the results to XML, applies an XSLT transformation,
and saves the output to a CSS file?
All of these are actual techniques in use on the web today. It really
wouldn't be practical for Firebug to handle every one of these, and
many other, possible scenarios. The code related to the primary
purpose of the tool - debugging - would be swamped by a huge quantity
of code related to interacting with servers, leaving less time to
improve the debugging capabilities. The bug tracking system would be
swamped not with reports of actual problems with debugging, but with
requests to support yet another mode of server interaction that could
not have been anticipated by the developers.
A good tool does one job, and does it well. In the case of Firebug,
that job is debugging client-side code and interactions. For editing
files/databases/transformations and updating servers, other tools are
available.
Regards,
Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/
2009/9/25 Simon <simo...@gmail.com>:
>
> Hi Nick. Thanks for your reply.
>
> Sorry, I realised my earlier post sounded a bit rude.
Not at all :-)
> I suppose it
> was the number of tutorials I found on Google (http://www.google.com/
> search?q=edit+css+firebug) that talk about using Firebug for writing/
> editing/developing CSS, which as you say is not really the purpose of
> Firebug.
That search does throw up a lot of results that look, at a a glance,
as if they're creating a misleading impression of Firebug.
>
> *However*, I think it should be possible to save the resulting CSS as
> a file, or even copy it to the clipboard at the very least. I just
> found the program "Stylizer" today which does exactly what I was
> looking for... the kind of live editing Firebug has given us with the
> extra ability to save the CSS changes to the local computer, or even
> FTP them to a remote server.
I'll have a look at that - thanks :-)
> Of course it cannot handle dynamically
> generated CSS, but I wouldn't think that would be occur in any more
> than 5-10% of websites. Dynamic content, sure, but CSS is generally
> fairly static, even in big CMS systems.
>
True - my examples were rather extreme, although they do illustrate
the scale of the problem if a truly generic solution was required.
> Anyway, is a simple save or copy-to-clipboard really so complicated to
> implement?
>
That could indeed be a useful option. (I seem to remember that Chris
Pederick's Web Developer Toolbar extension allows one to edit CSS in
the browser and save it to a local file.)