From: lee <lee@yun.yagibdah.de>
To: help-gnu-emacs@gnu.org
Subject: syntax highlighting on the fly
Date: Fri, 07 Mar 2014 12:43:24 +0100 [thread overview]
Message-ID: <87zjl2kzdv.fsf@yun.yagibdah.de> (raw)
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
(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?
--
Knowledge is volatile and fluid. Software is power.
next reply other threads:[~2014-03-07 11:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 11:43 lee [this message]
2014-03-07 12:20 ` syntax highlighting on the fly Jambunathan K
2014-03-07 13:17 ` lee
2014-03-07 12:24 ` Rainer M Krug
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=87zjl2kzdv.fsf@yun.yagibdah.de \
--to=lee@yun.yagibdah.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.