Firefox/mozilla UI development tools¶
Firefox and mozilla have a number of extensions that can greatly help your UI development work. A basic set is listed here.
Using trusty old "view source" used to be the way to debug bad-looking html. Now there are mozilla/firefox extensions that make html development much more productive. A basic set is listed here to get you up to speed.
- Web developer
- Web developer adds a web development toolbar to your firefox with almost everything you'd want to do or know. CSS info, validation, resizing to test other screen resolutions, converting POSTs to GETs. An essential.
- Aardvark, when enabled for a
page, shows you the class/id information when you hover over an
vfor instance, gives you the source for the item you hover over. Start the demo on their site and experiment with the keystrokes. It is a lightweight and elegant tool.
- ColorZilla is surprisingly handy. It does what the name suggest: providing a color picker that displays the hex code of the pixel you hover over in the status bar. There's more: showing the box size of the current box element; showing the element, class and ID of the current element; distance between two points. All in the status bar.
- The x-ray firefox extension is pretty handy in figuring out the layout of a plone site. It displays the tags, the IDs and the classes inline, giving you a surprisingly good idea of what's happening behind the scenes.
- View formatted source
- View formatted source gives you a well-rendered view of the page's source. More important, when you hover over an opening tag, it shows you the css that gets used for that tag. And with multiple css files (plone anyone?) it shows them in the order in which they're used (and overwritten).
- View source with
- View source with allows you to right-click on every textarea or source view and select a program to edit/view it with. A bit like ExternalEditor, but then for every textarea. Not 100% developer oriented, but handy for small changes to test css files in the custom skin folder and so anyway.
Another type of useful gadgets are bookmarklets.¶
Two sources of these are http://squarefree.com and http://slayeroffice.com See for example:
- Web development bookmarklets
- Mouse-over DOM Inspector
- The Mouseover DOM Inspector , or MODI for short, is a favelet (also known as a bookmarklet) that allows you to view and manipulate the DOM of a web page simply by mousing around the document.
- Favelet Suite
- This is a favelet that combines most of [the slayeroffice] development favelets . When invoked, a div element will appear in the top left corner of your browser window with a list of all the favelets I've included. Simply click the link you want to invoke the favelet.