all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Changing color for function invocation.
@ 2008-06-10 17:03 arnoori
  2008-06-11 19:11 ` Nikolaj Schumacher
  0 siblings, 1 reply; 2+ messages in thread
From: arnoori @ 2008-06-10 17:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am looking some thing in emacs like:

I want to see the function invocation statements to change color.
Like:

foo( (int *)a, (typedef_t) b);

That should change color to different one, than the rest of the code.

Is this feature already there in GNU emacs?

If not how can we implement this?

I am thinking of writing a regular expression and change the color for
the matching entry.

Is there a better way?

- Chenna.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Changing color for function invocation.
  2008-06-10 17:03 Changing color for function invocation arnoori
@ 2008-06-11 19:11 ` Nikolaj Schumacher
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolaj Schumacher @ 2008-06-11 19:11 UTC (permalink / raw)
  To: arnoori; +Cc: help-gnu-emacs

arnoori <arnoori@gmail.com> wrote:

> If not how can we implement this?
>
> I am thinking of writing a regular expression and change the color for
> the matching entry.

Write the regexp, but leave the coloring to font-lock.

Take a look at `font-lock-add-keywords'.


regards,
Nikolaj Schumacher




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-11 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 17:03 Changing color for function invocation arnoori
2008-06-11 19:11 ` Nikolaj Schumacher

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.