It does not highlight e.g \starttext keyword by default. The colorscheme seems adapted to LaTeX mode so I managed to fix this now for all \start - \stop commands with this code put in ~/.emacs.d/init.el
(add-hook ’ConTeXt-mode-hook
(lambda ()
(font-lock-add-keywords nil
’((”\\(\\\\start\\w*\\)\\>” 1 font-lock-function-name-face t)
(”\\(\\\\stop\\w*\\)\\>” 1 font-lock-function-name-face t)))))
And the regexp was done with help from interactive inbuilt function re-builder in emacs
The next goal is to highlight variabels like \textwidth for example
Thanks for feedback
/Jan-erik
Skickat från min iPhone
19 juli 2023 kl. 17:20 skrev Henning Hraban Ramm <texml@fiee.net>:
Am 19.07.23 um 15:38 schrieb Jan-Erik Hägglöf: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.
https://wiki.contextgarden.net/Text_Editors says, Emacs has ConTeXt support including syntax highlighting.I don’t use Emacs, so I don’t know how to activate/configure it.Maybe it expects a different file extension, like .ctx?Hraban___________________________________________________________________________________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-contextwebpage : https://www.pragma-ade.nl / http://context.aanhet.netarchive : https://bitbucket.org/phg/context-mirror/commits/wiki : https://contextgarden.net___________________________________________________________________________________