Add these two lines to your Emacs configuration file: These will use the ‘f5’ key to switch between PHP and HTML mode.The difference to Jonathan’s above is that these keys are only used if php-mode or html-mode is the current major mode in the buffer you’re in, rather than defining a global key.- Cody Reichert;; auto-complete for PHP https://github.com/xcwen/ac-phpfor system class ,system function ,and user define.I had to edit to use ‘php-mode’ for PHP files rather then C mode but other then that, it cooks just fine.

Bug reports for problems related to using PHP Mode with older versions of Emacs will most like and include its output in your bug report. In 2013 Daniel Haxney began rewriting parts of PHP Mode in terms of Emacs' built-in CC Mode.

This laid the foundation for incorporating some of the inherit IDE-ish features of Emacs, such as CEDET, EDE, and Semantic.

There is a long standing wish to develop a new and better PHP mode that can be included in Emacs.

Unfortunately the current can not be used as a basis for this since not all contributors have been willing to sign papers for Emacs.

As I wasn’t able to find anything that would handle indentation of multilingual code properly, I wrote the Web Mixed Indentation.

It indents PHP/Java Script/CSS/XHTML, and you can download it fromhttps://github.com/sabof/web-mixed-indentation-mode It’s a minor mode, and does just that - you can use it in conjunction with any major mode.- sabof Try also this new indenting/coloring/syntax detection multi-mode (otherwise using std php-mode, js-mode, css-mode, etc.)https://github.com/traceypooh/php-htm-mode Can we get instructions for semantic-php-simplest-grammar.by?Support for these tools continues to improve thanks to the work of Andrea Turso, Steven Rémot, Joris Steyn, and others.If you wish to test, contribute to, or simply experiment with such features then this thread is a good place to start. PHP Mode supports the following features and changes from PHP 7: .I’ve found lots of related info but can’t identify what is/isn’t relevant!This shows promise but only explains how to start a new language not how to use/activate them in ECB.Syntax highlighting includes every magic constant and predefined constant listed on the official PHP site.