I used several years the free ConText editor to edit fast formulas. Recently Paolo suggested me Notepad++, which is open source, and does a great job in syntax highlighting and brace matching.
I used it today for the whole day, and even when i have to get used to shortcuts and menu options, i would not be surprised to stick with it.
By the way, i used the sql language as syntax style.