|
|
On Feb 21, 3:19 am, "MadRabbit" <nemshi...@xxxxxxxxx> wrote:
> > Probably the best way would be to derive a derived mode from c-mode
> > for php. You can then add to that mode some of the code from sh-
> > script mode to handle heredocs. Handling heredocs isn't that simple
> > unfortunately.
>
> That's exactly what I do. There's a php-mode which derived from c-
> mode. Most of problems are already solved. I need help with this one.
> Can anyone give a piece of code?
See line ~821 in sh-script.el in the distribution of GNU Emacs 21 to
see how sh-mode deals with this problem.
The solution should be quite transferable to PHP.
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@xxxxxxx
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
|
|