From: "Robert Thorpe" <rthorpe@realworldtech.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Need help with some changes in c-mode
Date: 21 Feb 2007 02:25:51 -0800 [thread overview]
Message-ID: <1172053551.099281.87630@l53g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1172027974.585431.205000@p10g2000cwp.googlegroups.com>
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.
next prev parent reply other threads:[~2007-02-21 10:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 6:34 Need help with some changes in c-mode nemshilov
2007-02-19 19:34 ` Glenn Morris
2007-02-20 4:03 ` nemshilov
2007-02-20 15:50 ` Robert Thorpe
2007-02-21 3:19 ` MadRabbit
2007-02-21 10:25 ` Robert Thorpe [this message]
2007-02-21 13:33 ` MadRabbit
2007-02-21 17:34 ` Robert Thorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1172053551.099281.87630@l53g2000cwa.googlegroups.com \
--to=rthorpe@realworldtech.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).