My Emacs Web Development Environment Project

Tuesday, October 7, 2008

New Update for Emacs Php Mode

You can download here http://mewde.googlecode.com/files/php-mode-new.el
It is basically last Sourceforge php-mode and my old php mode mix; all sourceforge php-mode features is working (indentation; tag generation,showing function argument list, function reference, php manual search) plus hippie-expand base php-templates; function and all open buffers word completion with tab key; function templates and extra indentation with different keys.
Some big differences; code comments inserting sourceforge php-mode style; php-templates doesn't automatic insert; Class-function templates with shortcuts; otherwise; M-x php-template-TAB list all options, then select and insert.  We don't have old "Sources" menu, etc...But we have automatic imenu, outline and Templates menu; Header and Footer templates, Class and Function templates with shortcuts...
I was working with this mode past two months; It seems quite stable; works great for me; it supports php5 and php5 outlines; and it works just good with flymake-php; you don't need a big-fat php ide:) I tested with emacs23 environment; both vista and ubundu hardy; even works with yasnippet mode together; just disable abbrev-minor-mode, or if you are insert phptemplate, function etc; after typing and tabbing completion; type M-Space then going on; it works fine...
For example; I don't use any multiple major mode for php; I put all yasnipet html snippets to inside php snippets; and I use with new php-mode for complex php-html code pages.
I have big updates for Mewde Project; like yas-snippets support, actionscript3 and mxml support with flymake and flyparse-mode; new css-mode with syntax checking and flyparse-mode, js2-mode support with flyparse-mode, flymake-mode for php-c#-java, vcs backend modes support(like darcs-svn-bzr-git). I need better setup and I'm working on it; soon as possible, stay tune...

4 comments:

Deus Max said...

Great job with the php mode.I haven't tried it but definately will.
Glad to see that Emacs is finally getting serious with php-mode.

The other php-mode versions are also improved, I'm in no position to compare.

Your mode has caught up with php5 constants, etc.
minor note the DATE_* constants are missing.

Deus Max said...

Hey, quick notes from trying your php-mode-improved

It's really good.
things work nice and smooth and its loaded with features.

The tab key is used for name completion, but old habits are hard to break. Perhaps you can assign:

<C-Tab> for name completion
and keep <Tab> for indentation.

Minor point: true, false, null keywords highlighted as a warning. Change the applicable regex to case insensitive. Lowercase is OK with php.

Anonymous said...

hi 上來跟大家問聲好~~ 別玩得太累~~.................................................................

Unknown said...

Cannot Download ;-;