scripting:api:settings:detect-file-syntax

DetectFileSyntax

Method of ISettings

Detects syntax based on file name

var pSyntax = Settings.DetectFileSyntax(strPath);

==== Visual Basic Script ====

pSyntax = Settings.DetectFileSyntax strPath

==== C++ ====

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

===== See Also ===== ISettings