Hi,

Here is a situation. In the keywords tabs, I have TeX-like commands with '\':

\start, \stop, etc.

Here's the ambiguity:

I. If I do not enable '\' as an operator, I can treat my commands as complete words, including the slash. But I cannot type them back to back. Eg,

\start\stop

will not be highlighted because the slash is treated as a letter and Npp does not recognize the string '\start\stop' either as a keyword or as two separate keywords.

II. If I do enable the operator '\' as an operator, I must remove the slashes from my commands. Then I can type

\start\stop

back to back with syntax highlighting but, since the word's 'start' and 'stop' are used in running text as ordinary words, code folding etc can go awry.

Is there a way to disambiguate the slash so that I can type '\start\stop' and still get each keyword highlighted? The TeX lexer does this, but I am not a coder and writing/compiling a ConTeXt lexer is way beyond my skill.

Perhaps an option that allows '\' to act as an operator to what precedes it but not to what succeeds it. So in

abc\

'\' will behave as an operator but not in the case of

\abc

So I can set '\' keywords and still type them back to back, whcih is par for the course in TeX.

Thank you and

Best wishes
Idris