unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Context sensitive code highlighting.
Date: Tue, 08 Apr 2008 15:24:22 +0200	[thread overview]
Message-ID: <87myo4h43d.fsf@member.fsf.org> (raw)
In-Reply-To: e718bfc4-e2c8-470e-a8bf-dde9990af7c0@a9g2000prl.googlegroups.com

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.

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/





  reply	other threads:[~2008-04-08 13:24 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 [this message]
2008-04-08 14:17   ` Lennart Borgman (gmail)
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=87myo4h43d.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --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).