I'm trying to obtain a custom highlighting for the \xnote command in TexStudio editor, and I'm following these instructions, but when I add the lines to tex.qnfa as suggested it highlights the entire text after the first "\xnote": seems like it doesn't recognize the end of the command.
I would ask if you can indicate if there is an error with the lines that I'm adding:
<context id="comment/todocmd" format="commentTodo">
...
<start parenthesis="todo:open" prenthesisweight="12">\\xnote\{</start>
...
</context>
Moreover I would like to use this highlight feature in combination with my color scheme, but if I use tex.qnfa it replaces my personal .txs profile setting the standard colours, so I would ask how to do to mantain my color scheme while using tex.qnfa.
<stop>command? Moreover, if you just want\xnoteto behave like\todo, you can define this in a cwl file.See manual: cwl description and FAQ: What are cwl files good for and how do they work
– Tim Hoffmann Feb 08 '17 at 20:30