LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP editor with Emacs bindings (https://www.linuxquestions.org/questions/programming-9/php-editor-with-emacs-bindings-726081/)

CoderMan 05-14-2009 06:19 PM

PHP editor with Emacs bindings
 
I'm usually quite happing coding in Emacs. However, Emacs22 php-mode does a bad job of handling indentation when there is a mix of HTML and php. (No wise-cracks from the vim guys, please...) Is there another editor out there (X11 or console) that 1) has emacs key-bindings and 2) does a decent job of handling php coloring and indentation?

I tried jed, which I overall liked, except that I didn't really like the color schemes available (even with the extras package installed). And sometimes the coloring would get mixed up in strange ways, for example, part of a variable would be colored and part of it would not.

penguiniator 05-14-2009 08:14 PM

I can't suggest a better editor for this, but you might want to look at http://www.emacswiki.org/cgi-bin/wiki/HtmlModeDeluxe to see if it helps html mode and php mode get along better.

taylor_venable 05-15-2009 07:19 AM

IMHO Emacs just sucks for anything HTML. The single major mode idea is so embedded that even the numerous attempts to remedy it turn out to be slow and half-baked. (Sorry to say, Vim really does rule in this regard; the ability to highlight arbitrary syntax within arbitrary syntax was an excellent design decision.) Some editors support Emacs-like keystrokes to a certain degree, some better and some worse (mostly worse). It's been a while since I've used it but IIRC Eclipse had some decent Emacs keybindings, to the point of using e.g. C-x C-s to save, C-x k to close a tab, etc. That may be a good choice for you. Or maybe try Vimacs? http://www.algorithm.com.au/code/vimacs/ I don't know, I've never tried it.


All times are GMT -5. The time now is 08:11 AM.