help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Highlight parent if--else


From: Will Chang
Subject: Re: Highlight parent if--else
Date: Thu, 31 Jul 2008 18:07:10 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]