From: "Will Chang" <changwei.cn@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Highlight parent if--else
Date: Thu, 31 Jul 2008 18:07:10 +0800 [thread overview]
Message-ID: <4c8ce9a40807310307k72639b2aoc0b490838cb05728@mail.gmail.com> (raw)
In-Reply-To: <sa2fxpqv38i.fsf@nschum.de>
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
both sql and ruby use if..else.... I think this feature is very useful.
But I just don't how to implement it. I am new comer to emacs.
Someone can give me more details to implement it? Thanks.
On Thu, Jul 31, 2008 at 4:59 PM, Nikolaj Schumacher <n_schumacher@web.de>wrote:
> Xah <xahlee@gmail.com> wrote:
>
> > On Jul 30, 6:30 pm, "Will Chang" <changwei...@gmail.com> wrote:
> >> Can we highlight IF, ELSE END IF just like highlight-parentheses?
> >
> > However, it is possible to write one that does that by using elisp's
> > syntax table.
>
> I don't think so. Syntax tables can only match single characters.
>
> One would have to write versions of `up-list' and maybe `forward-sexp'.
> The rest can be done with existing code.
>
>
> regards,
> Nikolaj Schumacher
>
>
>
[-- Attachment #2: Type: text/html, Size: 1372 bytes --]
next prev parent reply other threads:[~2008-07-31 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.15620.1217467820.18990.help-gnu-emacs@gnu.org>
2008-07-31 8:12 ` Highlight parent if--else Xah
2008-07-31 8:59 ` Nikolaj Schumacher
2008-07-31 10:07 ` Will Chang [this message]
[not found] ` <mailman.15639.1217498843.18990.help-gnu-emacs@gnu.org>
2008-07-31 12:04 ` Xah
2008-07-31 1:30 Will Chang
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c8ce9a40807310307k72639b2aoc0b490838cb05728@mail.gmail.com \
--to=changwei.cn@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.