Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP syntax highlighter for Emacs

Tags:

php

emacs

emacs23

Is there a good php syntax highlighter for Emacs? I'm using Emacs 23. I've tried php-mode, but that doesn't do anything. I've tried nXhtml, but that ignores my color theme and reverts to some awful looking default. Is there one I've missed or perhaps a configuration setting I've ignored?

like image 633
mozillalives Avatar asked Apr 22 '10 16:04

mozillalives


2 Answers

I used this one http://www.emacswiki.org/emacs/php-mode-improved.el for some times. But I switched back to nxhtml as I have to edit too many badly mixed php/html/js/css files these days.

I tried the deboutv one but it sux on emacs (it was created for xemacs) and the development has been dead for some time with some bad bugs left.

You should try the modes available on emacswiki and see if one is good enough for you. If not, well, you know what to do : create your own.

like image 154
Arkh Avatar answered Sep 28 '22 07:09

Arkh


The php-mode you linked to most definitely provides syntax highlighting. If it "doesn't do anything", then you didn't install it correctly. You might want to re-check your configuration.

like image 42
Phil Avatar answered Sep 28 '22 08:09

Phil