Image

Imagertimmons wrote in Imagephp

Hello, all.

This is primarily related to emacs but to PHP+emacs in particular. Let me know if it should be posted elsewhere.

I'm slowly trying to make emacs my primary editor for everything, including PHP. I've been using emacs for quite some time with Java/C/etc and have been very happy with how it's handled those file types. PHP (when used in tandem with any other language) is a bit of a challenge, though, because emacs continues to highlight everything as though it were PHP—even outside of the PHP delimiters (<?php ... ?>). This is especially awful when JavaScript or CSS reside in a PHP file.

I'm wondering if anybody has conquered this multi-language foo created by using any other language with PHP in emacs. I've done a fair amount of Googling and tried out something called "two-mode-mode" which was really kind of a disaster (although I'm going to give it another go soon).

Also, does anybody know of a (better) HTML mode? The one that emacs ships with is awful. I've played around with a couple that I found but was wondering if anybody had a favorite or a suggestion.

For what it's worth I'm running Aquamacs (an OSX port of emacs21). It handles editing modes the same as any other version of emacs.

Any tips or blatant mocks for not knowing something would be helpful. Thanks in advance!