Because of some (fair) critique I have gotten about the way mode switching between php-mode and nxhtml-mode works I have rewritten that part. The new mode switching also includes embedded css, javascript, eRuby and JSP.
I want to thanks Hadron Quark for helping me by testing and pointing out bugs and weaknesses, most related to editing of PHP. I have included fixes for many of them in version 0.98 and more may follow.