Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAS Syntax Highlighting in Sublime

I would like to be able to use Sublime 3 as my SAS text editor but cannot seem to configure Sublime to do so. I've visited http://implementing-vdw.blogspot.com/2012/10/new-sublime-text-package-available-for.html and haven't been able to actually get the SAS syntax highlighting to work in Sublime.

Here's what I did, I don't have/know github so I downloaded the zip file as instructed and placed its contents in C:\Program Files\Sublime Text 3\Packages\SAS. I closed sublime and reopened but don't see SAS as an available syntax.

I'm sure I need to perform another step or two but I don't know what.

like image 304
Lyle Avatar asked Apr 06 '15 19:04

Lyle


2 Answers

Determined what the issue was, the 'Packages' directory where I installed Sublime Text 3 isn't the exact directory where you need to place the SAS folder. As a doublecheck to ensure you are placing the SAS folder in the correct location open Sublime -> Preferences -> Browse Packages..., this is the location where the SAS folder should be placed. Once done you will see SAS syntax available under View -> Syntax.

like image 171
Lyle Avatar answered Nov 16 '22 02:11

Lyle


Here's how I got this to work:

  1. download the zip file from the above blogspot location (I also tried using git but got a publickey access error)
  2. use Sublime -> Preferences -> Browse Packages to find the directory where this needs to be unzipped
  3. unzip the zip file into the appropriate directory (on MacOS, it was ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/)
  4. rename the unzipped folder to SAS
  5. at this point, I can select the SAS syntax in Sublime via View -> Syntax -> SAS
like image 24
Brian Westrich Avatar answered Nov 16 '22 04:11

Brian Westrich