help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: newbie syntax highlighting question


From: Peter Tury
Subject: Re: newbie syntax highlighting question
Date: Wed, 19 Apr 2006 08:53:52 GMT
User-agent: 40tude_Dialog/2.0.15.1

On 18 Apr 2006 16:55:42 -0700, kramer.newsreader@gmail.com wrote:

> I'm trying to write a syntax highlighting module for the MODL language
> which is very similar to c.  I'd like to see the c highlighting code
> and just modify it somewhat for my purposes.  Can someone tell me where
> I can find that code?

I use cvs Emacs (v22), but I think these can help (if you asked for the .el
source of C highlighting stuff in Emacs, and not the C sources of Emacs):

- if you enabled font-lock mode, then open a C file and type C-h m, you
should see some description of C mode (under the list of minor modes!)...

- check your-emacs-dir\lisp\progmodes\cc-mode.el (search e.g. for font-lock
or c-font-lock-init...). See also cc-fonts.el.

- but I think the best if you start consulting the Emacs Lisp manual (what
is part of Emacs 22, not part of Emacs 21, but you can find it online) at
the subchapter "Font Lock Mode".

- Maybe font-lock-add-keywords is enough for starting!

Br,
P


reply via email to

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