[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax highlighting on the fly
From: |
Rainer M Krug |
Subject: |
Re: syntax highlighting on the fly |
Date: |
Fri, 07 Mar 2014 13:24:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
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
pgplwPHFHo7J7.pgp
Description: PGP signature