A VS Code extension that adds syntax highlighting for SPSS syntax files
(.sps).
- Highlights SPSS commands, including case-insensitive matching and
SPSS's abbreviation rule: a command word may be typed down to its
first 3 letters (e.g.
FRE/FREQ/FREQUENCIESall highlight the same way). - Highlights comments:
* ...lines,COMMENT ...blocks, and inline/* ... */comments. - Highlights
BEGIN PROGRAM/END PROGRAMblocks as embedded Python, using VS Code's built-in Python grammar.
- VS Code.
Get spss-syntax.vsix (from wherever it was shared with you, or build
it yourself — see DEPLOY.md), then either:
-
In VS Code: Extensions view ->
...menu -> "Install from VSIX..." -> selectspss-syntax.vsix, or -
From the command line:
code --install-extension spss-syntax.vsix
Open a .sps file in VS Code; commands, abbreviations, comments, and
inline BEGIN PROGRAM / END PROGRAM Python blocks are highlighted
automatically.
For building, testing, and packaging the extension from source, see DEPLOY.md.