HTTPS clone URL
Subversion checkout URL
Clone this wiki locally
Firefile is a Firebug extension that allows you to save the CSS files edited with firebug live to your web server by transfering it to a server- side script, which then handles css saving. FireFile remembers all modifications done to a website (all modified css rules) and allows you to save them directly to your (local or remote) web server, which means that the changes will be publically applied.
How FireFile works
- A server-side php script (one file) get's uploaded to your webserver
- Opening the script with your browser links FireFile with the remote script
- From now on, FireFile remembers CSS- Changes while you work with Firebug
- Thenever you click on "save changes" (blue up arrow), FireFile sends the modified CSS- Sheet to your webserver by communicating with the server- side script firefile.php, which consequently updates your stylesheet on your server
- To verify the remote saving, just reload the page. The changes are now live... neat!
You can download the Firefox- Extension from https://addons.mozilla.org/en-US/firefox/addon/52365/ (Official Mozilla Addon Repository).
You can get the Server- Component from https://github.com/tobiasstrebitzer/FireFile-Server/zipball/master
- Upload the script firefile.php (download, zipped) to your web server (e.g. /web/firefile/firefile.php).
- Open the script url in your firefox browser (e.g. http://www.your-site.com/firefile/firefile.php).
- Fill in the highlighted fields "username" and "password" and click apply.
- Now open Firebug. A confirmation message will appear, asking you if you want to add the site to the list of "registered sites".
- Now reload the page. If the FireFile- Icon in your status- bar is active (dark), you're all set up!
- Backup your stylesheets, just in case something goes wrong.
- Modify some css- values in the Firebug CSS- Editing Panel (see screenshot below).
- A blue "up"- arrow should appear. Klicking it will save the changes to your server.
- You will get a notification on success.
- On error (red bar appears) you most likely need to set the file permissions of the css- files to world-writable (666 - 777).
- Some settings can be toggled by clicking the "down"- arrow next to the FireFile- Tab.
- FireFile displays CSS- Comments, although only those between styles, and not between rules (see screenshot above).
- If you right-click in the css- editing sidepanel you can choose to create new styles. It automatically lists the currently highlighted tags and classes, as well as a "Custom" option for individual selector input. It adds the style to the right-clicked stylesheet (e.g. in above screenshot: style1.css).
- If you add a "*" selector to your stylesheet, you will be able to add new styles on any element (because the * selector style will be visible on any html element).
- This extension works perfectly with "Firepicker", which will allow you to pick colors from a palette view.
- If you add some CSS3- Style Rules (like -moz-box-shadow, -moz-border-radius etc.), FireFile will automatically create the corresponding Style Rules for webkit and other browsers. This option can be turned off (settings- context- menü)
- Does this extension work with FireFox 5? Not with Firebug 1.8 - try using Firebug 1.7. See https://github.com/tobiasstrebitzer/FireFile/issues/17