====== DetectFileSyntax ====== Method of [[:scripting:api:settings:start|ISettings]] ===== Description ===== Detects syntax based on file name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strPath** ==== Return Value ==== * [[scripting:api:data-type:VARIANT|VARIANT]] **pSyntax** ===== Syntax ===== ==== JavaScript ==== var pSyntax = Settings.DetectFileSyntax(strPath); ==== Visual Basic Script ==== pSyntax = Settings.DetectFileSyntax strPath ==== C++ ==== VARIANT Syntax; HRESULT hr = Settings.DetectFileSyntax(strPath, &Syntax); ===== See Also ===== [[:scripting:api:settings:start|ISettings]] ~~NOTOC~~