Syntax highlighting and one-key runs for SPSS .sps syntax files using the
Stubhead statistics engine.
.sps syntax highlighting for SPSS commands, CTABLES, MRSETS, statistical procedures (DESCRIPTIVES, FREQUENCIES, CROSSTABS, T-TEST, ONEWAY, GLM, LOGISTIC REGRESSION, FACTOR, RELIABILITY, KM, COXREG, MIXED, CSDESCRIPTIVES, ROC), functions, system variables, strings, operators, and * / /* */ comments.
Stubhead: Run syntax file (stubhead.runFile) executes the active .sps file and renders output tables in a side panel.
Stubhead: Run selected syntax (stubhead.runSelection) executes the current selection (or the whole file when nothing is selected).
Settings: stubhead.binaryPath (default stubhead) and stubhead.licence (falls back to a key installed with stubhead licence activate).
Requirements
Download a native binary for Linux, macOS, or Windows from Stubhead Releases and place it on PATH, or point stubhead.binaryPath at the executable:
stubhead licence activate <your-key>
Syntax highlighting and the hosted browser demo at stubhead.com are free. Running syntax on your own .sav/.zsav/.por datasets uses an offline SBH1 Pro, Team, or Site licence key.
Development
node test/parser.test.js
npx @vscode/vsce package
Licence
AGPL-3.0-or-later. See Huckcity/stubhead. The extension communicates with the CLI over a child process and contains no engine code.