HTML
The text editor I use mainly for html is
Crimson Editor it's got a project manager, tabbed editing, syntax highlighting, all that good stuff.
PHP
For PHP I use
Zend Studio, however it's not free. You can also use Crimson Editor for PHP, but Zend has debugging capabilities, code suggestion, etc.
To document your code, use
phpDocumentor, it creates really good looking documentation of your code. It comes already installed with Zend Studio.