Dont bother with wysiwyg editors for html, most of them just generate a lot of overhead code.
For the php editor I would recommend Eclipse with the php and html plugin.
There you will have coloured code to check if your syntax is ok.