Has indenting, coloring, normal modes syntax parsing, etc.
Has some auto-newline and indent features for JS/CSS/PHP
Assumes and works best with emacs v24+ but will try to "gracefully degrade" for earlier versions.
As a special bonus, for randomness, will do similar multi-mode for bash and shell scripts that have inline php.
Example usage setup:
- cd $HOME;
git clone git://github.com/traceypooh/php-htm-mode.git;
Add these lines to your $HOME/.emacs:
(load-library (concat (getenv "HOME") "/php-htm-mode/multi-mode.el"))
(load-library (concat (getenv "HOME") "/php-htm-mode/php-htm-mode.el"))
Works great on linux and MacOSX (I'm using macports and "sudo port install emacs php-mode.el" for v24 emacs in Mountain Lion)
Here's some screenshots illustrating cursor movement and mode changes in a file with 4 kinds of code (PHP/HTM/CSS/JS)