I am trying to configure the TeXWorks editor to use the same syntax coloring as TeXMaker. However, TexWorks uses regexes to specify what should be coloured. Unfortunately it doesn't have a default setting for math.
I want to match everything between $ and $,
everything between \[ and \],
everything between \( and \),
everything between $$ and $$. The latter is not very necessary because it's rarely used in LaTeX documents.
It can also be more than one regexes to match all cases.
Of course \$ is escaped so I don't want to match that, nor \\[ etc.
Then I also want to match everything between \begin{equation} and \end{equation}, but that is simple.
'It cannot be done' is a possible answer.