From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Context sensitive code highlighting.
Date: Tue, 08 Apr 2008 16:17:06 +0200 [thread overview]
Message-ID: <47FB7E62.7030200@gmail.com> (raw)
In-Reply-To: <87myo4h43d.fsf@member.fsf.org>
Tassilo Horn wrote:
> Robin.Fairey@gmail.com writes:
>
>> How hard would it be to implement context sensitive font lock
>> behaviour? I'm thinking of something that scans the code for an
>> argument list and then highlights subsequent occurences of the
>> argument names in a new colour.
See
(info "(elisp) Search-based Fontification")
You can use a function instead of a regexp for searching for things to
highlight. So it is possible to do what you want. You just need to do
some book-keeping.
> Have a look at highlight-symbol.el [1], especially `highlight-symbol-mode'.
>
> Bye,
> Tassilo
> __________
> [1] http://www.emacswiki.org/cgi-bin/emacs-en/HighlightSymbol
> http://nschum.de/src/emacs/highlight-symbol/
It is very good, but would look much better if a background overlay
could be used instead in hi-lock.
next prev parent reply other threads:[~2008-04-08 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 9:51 Context sensitive code highlighting Robin.Fairey
2008-04-08 13:24 ` Tassilo Horn
2008-04-08 14:17 ` Lennart Borgman (gmail) [this message]
2008-04-09 22:53 ` Eric M. Ludlam
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=47FB7E62.7030200@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tassilo@member.fsf.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).