There is a PHP mode for emacs

There is a PHP mode for emacs

There is a PHP mode for emacs. It's available separately, or at least not part of my Emacs installation, and claims to be "mostly concerned with setting up syntax colouring" - it leaves indentation to the C mode that it's based on. I'm not getting warm fuzzies from the thought that PHP has been around all this time and still nobody with elisp clue has wanted to spend significant time on it.

Sod that then, I'll use C mode.

This impressed me:

Now the new, combined mode will be invoked if any of the above mentioned files are opened or created. To reduce the indentation problems, always open php regions in your files as follows:
    <?php />/;
This will stop psgml-mode from messing with the indentation in the php-mode subregions (it thinks the <?php-tag is immediately closed again) and un-confuse php-mode's parser (which think's the wierd stuff it just read ends at the ";"). :-)
(from http://www.emacswiki.org/cgi-bin/emacs.pl?HtmlModeDeluxe)


Comments?

This blog has no comment-publishing facility: it's all done by hand. Feedback is welcome, though: if you would like to get in touch, email me on comment2010 @ telent . net and I will publish your thoughts (unless you tell me you don't want me to) as an addendum to the article, provided only that in my view they are interesting, amusing, relevant, accurate, or (best) some combination of the four. Relevant links are welcome in support of your argument: spam and untargeted requests for help are not.

telent netowrks

Geeky stuff about what I do. Many include Lisp, Android, Javascript, Linux and matters arising. For my other personality (less tech and more skating/cycling), see coruskate