[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coloring a command in LateX-mode?

From: Stefan Monnier
Subject: Re: Coloring a command in LateX-mode?
Date: 23 Jun 2003 16:27:39 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Nicolas" == Nicolas Neuss <address@hidden> writes:
> \ifg{Hallo}{Hello}!

If the `Hallo' and `Hello' parts are short enough (a couple lines at most),
you can use font-lock-add-keywords in your tex-mode-hook.

Otherwise, you'll have to use something more complex and it's probably not
worth the trouble.  If you really insist on doing it, I'd recommend you
look at how perl-mode and cperl-mode handle the s/.../.../
command highlighting (they use two different approaches).
For perl-mode, you'll have to look at the version that's in Emacs-CVS
because the version in Emacs-21.3 does not have this code yet.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]