"Excel/Spreadsheet Formula" Mode

I’m looking to use CodeMirror as a single-line editor for applying color coding “Excel/Spreadsheet” style formulas, eg:

=SUM(1, 2, A5)

I don’t suppose there are any pre-existing modes that would do color coding for this? It’s not really a language…and isn’t listed that I can see in the pre-packaged modes available.

Before I waded in and started to write my own mode AST parser I thought I’d check-in and see if anyone has done this before - or has some good pointers on where I should get started.


I just tried using the mathematica mode, and this seems to be doing what I need. Nice! Easy :slight_smile:

1 Like