Dark+ (SAS): A color theme based on Dark+ (default dark)
Examples:
Data step
SQL procedure
Statistical procedure
Procedure
Macro
Installation
In VS code, open Extensions (Ctrl+Shift+X) and search for hui-ts.vscode-sas to install it; or
Click Install button in the VS maketplace page to install it in VS code.
Extension Settings
Syntax Highlighting
Click Select Language Mode button in the bottom-right corner
Search for SAS
Select SAS (sas)
Theme
File > Preferences > Color Theme
Select Dark+ (SAS)
Known Issues
Some SAS keywords consist of more than one word. The highlighting will not work when these keywords are split into different lines. It is a limitation of TextMate grammar.
Bugs
Please open a new issue. However, I only update it from time to time.
If you want to play with this project, you can download it and run npm i in the terminal to install the required dependencies. Then, you may make some changes in /syntaxes-yaml/sas.tmLanguage.yaml and then press F5 to see the effect.
More
I develop this project because I need a SAS syntax highlighter to facilitate my work, but the existing SAS syntax highlighters have some bugs in my SAS code. Thus, I focus only on the syntax I need but do not exclude the possibility of implementing more syntax highlighting.
Not until developing the TextMate grammar for SAS did I realise it was pretty tough. The reason is SAS syntax has no simple but universal rules.