Emacs and PHP/HTML mode
(X)Emacs can basically handle only one major mode. While this is fine for most applications, it is not very practicable for editing mixed HTML and PHP files, especially concerning indentation of lines.
Several possibilities exist to handle this situation :
- Multi-purpose multiple mode modes
- Dedicated modes
- nXhtml mode for editing Xhtml files. Homepage