Sublime Forum

Syntax for spreadsheet formulas

#1

What syntax highlighting would you recommend for writing spreadsheet formulas, like those used in Excel, Google Sheets, Numbers, etc?

1 Like

#2

This syntax is inspired by Tex/LaTeX, if I remember correctly. The easiest way would be to use the LaTeX syntax and wrap your formulas in $, i.e. $a^{b+x}$.

0 Likes

#3

Thanks for the suggestion @FichteFoll, but it doesn’t pickup syntax very well. So far C seems to do the best job, but picks up on very little.

0 Likes

#4

I’ve used the ASP syntax highlighting. Works nicely!

0 Likes

#5

Yes, C is indeed the best one. Thank you! :slightly_smiling_face:

0 Likes

#7

@fdmsaraiva

Apologies for digging up this old post, but if it’s any help, I’d like to share the following:

I had been struggling with this issue as well. A few weeks ago I finally got fed up and made my own:

Excel formula - Package Control
Excel formula - Github

So far it’s been smooth sailing when using it with all kinds of Excel formulas.

Edit:
As of now, v1.1.3 is the latest version. Currently waiting for Package Control to check the repo for the update. I forgot to remove (test) from the syntax name: before committing it to Github.

Preview:

0 Likes