getLanguageName
getLanguageName(langnum: Integer;): String;
The getLanguageName method of the JadeTextEdit class returns the name of the programming language associated with the number specified in the langnum parameter. For details about the languages that are understood by Scintilla, see http://scintilla.sourceforge.net/ScintillaDoc.html.
Some of the possible values for the langnum parameter are the JadeTextEdit class constants listed in the following table.
Class Constant | Value | Class Constant | Value |
---|---|---|---|
SCLEX_BASH | 62 | SCLEX_BATCH | 12 |
SCLEX_CONF | 17 | SCLEX_CPP | 3 |
SCLEX_CSS | 38 | SCLEX_DIFF | 16 |
SCLEX_HTML | 4 | SCLEX_JADE | 65 |
SCLEX_JAVA | 65539 | SCLEX_JAVASCRIPT | 131075 |
SCLEX_MAKEFILE | 11 | SCLEX_PERL | 6 |
SCLEX_PROPERTIES | 9 | SCLEX_PS | 42 |
SCLEX_PYTHON | 2 | SCLEX_TEXT | 1 |
SCLEX_VB | 8 | SCLEX_VBSCRIPT | 28 |
SCLEX_XML | 5 |
See also the JadeTextEdit class language property.
The code fragment in the following example shows the use of the getLanguageName method.
languageList := ""; foreach int in 1 to 80 do langName := jteRead.getLanguageName(int); if langName <> "" then languageList := languageList & int.String & "=" & langName & Tab; endif; endforeach;