On 5/14/2017 8:55 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
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..
in mkiv most commands that have generated names also provide generic instance handling, like here
Can you explain or give a complete sample test file illustrating how they apply in the matter under discussion? Thanks.
afaiks there is not much to add to the above example unless i misunderstood; basically one can always use "topic" as instance name to do something instead of \somecommandwith<topic>init
something like the following:
TeX primitives - Knuth luaTeX primitives - excluding Knuth macro structure - e.g., sectioning etc. micro structure - e.g., itemizations, tables etc.
here i have document level (\startdocument etc) vs the rest
mode structure - e.g., metapost, xml, markdown MkiV - remaining high level MkIV - low-level [but how to separate them out?]
is there a need to separate them? after all, most users will not use low level code and when they do it doesn't matter much to them if they're more or less low level low level is fuzzy anyway: \xmlfirst (more low level?) vs \xmlfilter (more generic)
user-defined
Perhaps collapse macro and micro structure into one set... Again, just ideas for now, will work this week to work them into a concrete organization for the lexer - once we generate a complete list of concrete mkiv commands.
If we can generate a complete version of the list in scite-context-data-interfaces (including \bTR etc.) then we can subtract that from the complete list of concrete mkiv commands, giving us mutually exclusive and jointly exhaustive high/low-level lists.
Any help and other ideas are greatly appreciated!
Idris
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------