all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: syntax highlighting on the fly
Date: Fri, 07 Mar 2014 17:50:11 +0530	[thread overview]
Message-ID: <87zjl2i4jo.fsf@gmail.com> (raw)
In-Reply-To: 87zjl2kzdv.fsf@yun.yagibdah.de


(info "(emacs) Font Lock")

(info "(emacs) Highlight Interactively")

Put your cursor after the closing ")" and do C-x C-e.  Hint: Search for
FIXME in the first node.

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
>
>
> (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?




  reply	other threads:[~2014-03-07 12:20 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 [this message]
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=87zjl2i4jo.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --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.