[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help with some changes in c-mode
From: |
Robert Thorpe |
Subject: |
Re: Need help with some changes in c-mode |
Date: |
21 Feb 2007 02:25:51 -0800 |
User-agent: |
G2/1.0 |
On Feb 21, 3:19 am, "MadRabbit" <nemshi...@gmail.com> 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.