[texworks] syntax pattern for inmath

Alain Delmotte esperanto at swing.be
Tue Feb 2 18:14:49 CET 2010


I'd like to have syntax-pattern for inmath expressions like $e=mc^2$.
I have this:
    limegreen    N      \$.+\$
but if there are more than one math expression, everything is coloured 
between the first $ (of the first expression) and the last $ (of the 
last expression).

Also I'd like this for the display-math expressions "on several lines".
I have :
    limegreen    N      \\\[((.*)\n?)+\\\]
this works for a one line expression
but not for



Is this possible?


More information about the texworks mailing list