[Top][All Lists]

[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 <address@hidden> wrote:
Xah <address@hidden> wrote:

> On Jul 30, 6:30 pm, "Will Chang" <address@hidden> 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.

Nikolaj Schumacher

reply via email to

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