1

If you make a todo-comment, e.g. %XX, it will be highlighted green (in my case).

Can I manually highlight other code? For instance, it would be a help to me if I could highlight the section and subsection title, so I could easiler navigate and keep an over view.

  • 2
    Which editor are you talking about? – TeXnician Aug 26 '17 at 7:57
  • 1
    Welcome to TeX.SX! You only want to highlight code in the editor and not in the pdf file? – Bobyandbob Aug 26 '17 at 8:02
  • Did you made a research before posting? "highlight code" gives me 43 pages of answers in this file, your question must have been answered somewhere. And the answer depends on the editor, so please search "highlight code myeditor". – sztruks Aug 26 '17 at 8:12
  • @TeXnician: Sorry, I forgot that. I am using TexStudio – jbahn Aug 26 '17 at 8:29
  • @Bobyandbob: yes, that's right. Just as a help to maintain the overview – jbahn Aug 26 '17 at 8:30
2

TeXstudio does highlight quite a lot different things.

  1. You can adapt the colors for known formats at Options -> Syntax Highlighting. For sections use Basic Highlighting -> structure.
  2. For modifying which %TODO-like commands are matched, adapt `Options -> Advanced Editor -> Structure Panel -> Regular expression for TODO comment.
  3. There are a number of further options which control highlighting of relevant information such as undefined commands.
  4. If you want even more control, you can modify the Language Definition. Be sure to understand the implications. You can find an example here.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.