12 Replies Latest reply on Jul 23, 2018 3:44 PM by chia-hua.yu

    Sublime syntax file for Tableau Calculations


      Greetings folks, if you ever copy your calcs so you can edit them in Sublime text, this might be helpful. Once it's in the sublime package directory and you identify your code as tableau code, it will highlight the command keywords and strings.





      If you’re interested in testing it, go to Preferences > Browse Packages in Sublime and place the attached file in the User directory and restart Sublime. When you wanna use it, you hit ctrl-shift-P, start typing “tableau” and choose set syntax: tableau. Of course there’s no way that Sublime could parse parameters and fields based on brackets alone so they are all one color. Also this is my first syntax highlighting file so I'm sure improvements could be made. I welcome any comments!