On 5/14/2017 10:04 PM, Wolfgang Schuster wrote:
Idris Samawi Hamid ادريس سماوي حامد mailto:Idris.Hamid@colostate.edu 14. Mai 2017 um 20:55 On Sun, 14 May 2017 12:20:43 -0600, Wolfgang Schuster
wrote: OTOH user-defined commands can be added to the ConTeXt lexer via the Style Configurator (Notepad++) and get their own highlight color. I have found this very useful in writing long documents. See attached (User-defined Keywords dialog).
You can limit the number of custom commands when you use
\startnamedsection[topic][title=...]
instead of
\starttopic[title=...]
First time encountering these two commands; they're not on the wiki, need to learn more about them..
Can you explain or give a complete sample test file illustrating how they apply in the matter under discussion? Thanks. This is only a example to demonstrate that you can create new commands without using new command names (and the need to add them to your lexer) in your document.
In the example below I create a new section but I don’t have to use a new user generated command in the document itself.
\definehead[topic][subject]
\starttext
\startnamedsection[topic][title=This is a topic] ... \stopnamedsection
\stoptext
indeed, and we stimmulate this over using hard coded generated names (some define commands have the option not to define instance commands) idris: don't overdo syntax highlighting, better concentrate on supporting structure Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------