SAS syntax highlight in sublime text 3 for Mac

Post date: Oct 31, 2014 6:01:11 AM

By default Sublime text 3 does not come with SAS syntax highlighting. So I need to add one myself. Here is how:

  1. Download the syntax highlight definition file. You can get the file from here. You can use git to get clone the file, or you can download the compressed file. For me I just simply downloaded the file and extract the file into a directory called SAS, in which lots of relevant files are stored.
  2. Locate the Package directory. A simple way is to go to Preferences>Browse Packages... In Mac OSX, the dir is
      1. ~/Library/Application Support/Sublime Text 3/Cache/
  3. Copy the whole definition dir (SAS) to the directory above. That is, ...../Cache/SAS
  4. Quit and Restart Sublime text 3 and now you can see "SAS" in the syntax selector.