Reputation: 11435
Whenever I indent HTML
in PHP
mode, emacs (22.1.1, basic install on Redaht Linux over Putty-SSH)
pops up a frame and tells me to get MUMODE
or somesuch
extra add-on. I installed PHP
Mode without a big hassle, but I don't know how to get this multi-mode rolling.
How to install and configure multi-mode
How to disable pop-ups in Emacs
Upvotes: 5
Views: 4387
Reputation: 826
web-mode.el is available on http://web-mode.org
This major mode is designed to edit html php templates (with JS and CSS)
Add those two lines in your .emacs
(require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.phtml$" . web-mode))
Upvotes: 1
Reputation: 2123
multi-mode and html-php-mode can be found here : http://www.loveshack.ukfsn.org/emacs/
It can be initialized with:
(require 'html-php)
(add-to-list 'auto-mode-alist '("\\.php\\'" . html-php-mode))
Upvotes: 0
Reputation: 16451
If you're running emacs 22, you should just be able to run:
M-x nxhtml-mumamo
when editing an html document. You might want to add it to your auto-mode-alist to get it to automatically load for html docs. See here for more info:
http://www.emacswiki.org/cgi-bin/wiki/MuMaMo
http://www.emacswiki.org/cgi-bin/wiki/PhpMode
Upvotes: 4