From: Rainer M Krug <Rainer@krugs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: syntax highlighting on the fly
Date: Fri, 07 Mar 2014 13:24:12 +0100 [thread overview]
Message-ID: <m2ob1ikxhv.fsf@krugs.de> (raw)
In-Reply-To: 87zjl2kzdv.fsf@yun.yagibdah.de
[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]
lee <lee@yun.yagibdah.de> writes:
> Hi,
>
> is something available with emacs to do to syntax highlighting on the
> fly?
>
> "On the fly" means: You have a mode with syntax highlighting which does
> most of the highlighting. Now you work on a file (source code for some
> program) in a buffer with your mode enabled, and you decide that for
> this particular file, you want "foobar" to be highlighted.
>
> You´d have to somehow tell emacs to do this, for example by adding a
> comment like
>
>
> // highlight: foobar
>
>
> to your file. You could also do it like
>
>
> #define foobar 25
I like this idea - add highlighting of certain words by using
file-local-variables.
Please keep us posted.
Rainer
>
>
> (since you´re using #define anyway) and have all occurances of "foobar"
> highlighted.
>
> It´s probably possible to write something for this, and I wouldn´t even
> know where to start. Perhaps it´s already built in and I only don´t
> know about it?
--
Rainer M. Krug
email: RMKrug<at>gmail<dot>com
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
next prev parent reply other threads:[~2014-03-07 12:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 11:43 syntax highlighting on the fly lee
2014-03-07 12:20 ` Jambunathan K
2014-03-07 13:17 ` lee
2014-03-07 12:24 ` Rainer M Krug [this message]
2014-03-07 15:24 ` lee
2014-03-07 17:06 ` Drew Adams
2014-03-07 18:43 ` lee
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=m2ob1ikxhv.fsf@krugs.de \
--to=rainer@krugs.de \
--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.
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.