1

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.

  • 3
    Maybe it is better to ask this question here sourceforge.net/p/texstudio/discussion/907840 – sergiokapone Feb 8 '17 at 14:30
  • yes, for example I can have \xnote{mynote}, where in a separate file I write the note content with \xnotecontent{mynote}{the content of the note}. I would only highlight \xnote{mynote}, in order to better focus it in the editor – Alessio Feb 8 '17 at 15:00
  • You're leaving out the part you are asking about?!? What's your <stop> command? Moreover, if you just want \xnote to 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 8 '17 at 20:30
  • So I have to create a .cwl file called xnote.cwl and write inside it \xnote{arg1}D? Is that correct? – Alessio Feb 8 '17 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.