unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Tury <tury.peter@gmail.com>
Subject: Re: newbie syntax highlighting question
Date: Wed, 19 Apr 2006 08:53:52 GMT	[thread overview]
Message-ID: <1rmuj55hdmwyi$.1w56kwvobmb7z$.dlg@40tude.net> (raw)
In-Reply-To: 1145404542.680138.324170@j33g2000cwa.googlegroups.com

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

  parent reply	other threads:[~2006-04-19  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-18 23:55 newbie syntax highlighting question kramer.newsreader
2006-04-19  8:18 ` Thien-Thi Nguyen
2006-04-19  8:53 ` Peter Tury [this message]
2006-04-19 16:24 ` Kevin Rodgers
     [not found] ` <mailman.586.1145464004.9609.help-gnu-emacs@gnu.org>
2006-04-19 17:16   ` kramer.newsreader

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='1rmuj55hdmwyi$.1w56kwvobmb7z$.dlg@40tude.net' \
    --to=tury.peter@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).