Dear All!
I've been using emacs AUCTEX for quite a while and found it very convenient
to work with.

One issue is the lack of syntax highlighting.

I've tried some elisp code and added the following hook when I'm in
ConTeXt-mode:

(add-hook 'ConTeXt-mode-hook
          (lambda ()
            (font-lock-add-keywords nil
                                    '(("\\(\\\\starttext\\)\\>" 1
font-lock-warning-face t)
                                      ("\\(\\\\stoptext\\)\\>" 1
font-lock-warning-face t)))))

and it seems to highlight the start-stop text keyword.

So my question is:
Is there a way to accomplish a similar way of highlighting all other
keywords that belongs to the ConTeXt typesetting syntax?

Maybe a REGEXP (I'm not good at writing those) can do this in some way
without manually write every start-stop sequence that exists.

Have anyone, using AUCTEX, already did some customizing already who wants
to share it with me.

Many thanks in advance

/Jan-Erik
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to