scripting:api:settings:detect-file-syntax

DetectFileSyntax

Method of ISettings

Detects syntax based on file name

var pSyntax = Settings.DetectFileSyntax(strPath);
pSyntax = Settings.DetectFileSyntax strPath
VARIANT Syntax;
HRESULT hr = Settings.DetectFileSyntax(strPath, &Syntax);