In my work I use textmate, the mac only editor from macromates. It comes with the abilities for macro's and plugins, some of them are in my opinion very usefull for a web developer.

CSS

For CSS I absolutely love this one Format CSS single-line. With this you can format your CSS in the way you prefer, simply by pressing ctrl-q.

You choose either 1 or 2, where the latter is the single-line option you should go with when you publish stuff.

JavaScript

Another one is for writing javascript, the one thing that makes it usefull to me is that it runs jslint on my js as I save. That sort of thing keeps me sharp and makes me put ; in all of the right places. It warns you, nice and unobtrusively, of any warning or errors as you save. And you can call it before that to get a nice window, where you can click right through to the line where the error is.

validate

It also compresses your JavaScript files in two ways, minifying or obfuscating it. You can get it here: Javascript tools.