This question already has an answer here:

I would like to customize the settings for text highlighting on TexStudio.

I'm working with lot of big and small equations and using the breqn package. Here is some sample code:


    A small inline equation: $small$\\

    A regular non-inlined equation:
        Regular = \omega \times \delta

    A big equation that might need line breaks:
        Big = \omega \times \delta + bla + bla + bla + bla + bla  + bla + bla + bla + bla  + bla + bla + bla  + bla + bla + bla  

    The way I'd like to deal with this:
    \eq{something = \omega + \delta}    

And the result is fine:

The resulting PDF

However, when working on the text editor of TexStudio, the code looks like this: Working with TexStudio

My question: Is there a way to get TeXstudio to understand that the dmath environment is an equation environment so that it does not highlights the math symbols in red but use the formatting used in the equation environment? Would it be possible to do the same with the custum command as well?

marked as duplicate by Troy, Mico, Bobyandbob, TeXnician, Zarko Feb 6 '18 at 16:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.