Language Property
Home Page (Objects) | Overview | FAQ | Reference
Applies to: TextDocument object
Gets or sets the programming language used to check the syntax of the language in a document.
Syntax
object**.Language** [=string]
Parameters
object
An expression that evaluates to a TextDocument object.
string
A string constant of type DsLanguageSettings that specifies the type of language. Possible values are:
dsCPP Represents "C/C++."
dsFortran_Fixed Represents "Fortran Fixed."
dsFortran_Free Represents "Fortran Free."
dsHTML_IE3 Represents "HTML IE 3.0."
dsHTML_RFC1866 Represents "HTML 2.0, RFC 1866."
dsIDL Represents "ODL/IDL."
dsVBSMacro Represents "VBS Macro."
Remarks
The Language property has the String type.
Example
The following example sets the programming language used in the active document to C/C++:
ActiveDocument.Language = dsCPP