all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Subject: Re: fontifying of user defined variables
Date: Wed, 13 Sep 2006 23:54:50 +0200	[thread overview]
Message-ID: <87bqpjo2j9.fsf@hans.local.net> (raw)
In-Reply-To: <10129949.484411158055226421.JavaMail.servlet@kundenserver> (dieter@duenenhof-wilhelm.de's message of "Tue\, 12 Sep 2006 12\:00\:28 +0200")

dieter@duenenhof-wilhelm.de writes:

>
> I'd like to highlight user specified variables in a major mode for a
> simple macro language (Ansys parametric design language or APDL).
> All number variables are specified with the following assignment:
>
> VARIABEL=VALUE
>
> I'd like to fontify in a certain face any variable VARIABLE which
> was defined in such a way and appears after the definition anywhere
> in the code.  Could you please outline the method or point to a lisp
> file where such a "dynamic" highlighting is accomplished.

Well, had a look at C/C++ mode and not even there I could find above
functionality.  So I guess it's too awkward to program this otherwise,
I think, very helpful stuff.

The only idea I've so far is for a function which parses now and then
the buffer and adds or removes font lock keywords to the
font-lock-keywords variable according to the current variable
definitions in the buffer.

                Dieter

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

  reply	other threads:[~2006-09-13 21:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-12 10:00 fontifying of user defined variables dieter
2006-09-13 21:54 ` Dieter Wilhelm [this message]
     [not found] ` <mailman.6912.1158195722.9609.help-gnu-emacs@gnu.org>
2006-09-14 14:47   ` rgb
2006-09-16  7:42     ` Dieter Wilhelm

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=87bqpjo2j9.fsf@hans.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    /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.