Chris Beggy on Wed, 21 Nov 2001 19:41:14 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] php editors?


kevin mudrick <kevin@furhurts.com> writes:

> I've always pretty much used Emacs for development purposes, but I'd like
> to use something better if it is out there.

You know how to manipulate emacs fans don't you...

Try mmm-mode (Multiple Major Modes) with php-mode and an html
mode with something like:

 (load-library "php-mode")
     (require 'mmm-mode)
     (setq mmm-global-mode 'maybe)
     (mmm-add-mode-ext-class nil "\.php?\'" 'php-html)
     (mmm-add-mode-ext-class nil "\.phtml?\'" 'php-html)
     (mmm-add-mode-ext-class nil "\.ihtml?\'" 'php-html)
     (mmm-add-mode-ext-class nil "\.inc?\'" 'php-html)
     (mmm-add-classes
       '((php-html
          :submode html-helper-mode
          :back "<\?\(php\)?"
          :front "\?>"
        )))

in your .emacs.  Or use psgml's html-mode if you prefer that to handle your
html. Or make html-mode your major and php-mode your submode if
you are doing more php inside of html.

It's emacs, so at least you won't run out of parameters to
adjust.

Chris


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug