Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I like how CSS edit has a live preview which updates after you edit a CSS file. I've been doing similar with Firebug and tweaking CSS however that is only temporary. I usually edit files in Textmate than cmd+tab to the browser and cmd+r to refresh.

I was wondering if it would be possible to have Firefox watch CSS files in a document, and update the document when they get saved? This would mirror the CSS edit live preview functionality and eliminate the need for an extra app. Not sure how the plugin would have to work, this is just daydreaming.

Thanks a lot if you have any ideas

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Its not automatic, but you might look at CSS Reloader. Gives you a keyboard command to only refresh the CSS.

https://addons.mozilla.org/en-us/firefox/addon/css-reloader/

share|improve this answer
    
Holding down the right-Shift key while clicking on the Reload button should cause the CSS to be reloaded (and everything else that's cached). –  Randolf Richardson Mar 3 '11 at 18:27
    
Many thanks Nate, I think this is the closest it's going to get. Would be cool if there was a plugin that could watch a file and update automatically to save the tabbing and refreshing, maybe I'll suggest it to the plugin developer. –  Machine Elf Mar 3 '11 at 21:11
    
Yes, at least on Windows (I presume other OSes as well) there is the FileSystemWatcher API, which provides a way to do just that, call a method when a file changes. –  Nate Mar 3 '11 at 21:16
add comment

Opera can do something like this -- right-click on the web page, select "Reload every..." and choose the number of seconds (or specify a custom time period in seconds, minutes, hours, etc.).

  Opera
  http://www.opera.com/

Be sure to test your code in the major web browsers. An alphabetical list of the free ones can be found here:

  Resource - Web browsers
  http://www.lumbercartel.ca/resources/web-browsers.pl

share|improve this answer
    
Nice function! Yeah I test in all the browsers but develop mostly in Firefox. –  Machine Elf Mar 3 '11 at 21:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.