|
|
|
|
|
- Properties specific to WLanguageCodeFormatting variables
- WLanguage functions that use WLanguageCodeFormatting variables
WLanguageCodeFormatting (Variable type) In french: CodeWLangageMiseEnForme
The WLanguageCodeFormatting type is used to define all the WLanguage code formatting options. These options can be defined and changed using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
sCode is string ANSI = "
MiseEnFormeCode est un CodeWLangageMiseEnForme
MiseEnFormeCode.Langue = langueFrançais
MiseEnFormeCode.Indentation = Vrai
MiseEnFormeCode.InclureDéclarationsCSS = Vrai
MiseEnFormeCode.IgnoreErreurCompilation = Vrai
MiseEnFormeCode.CasseMotsClés = codeWLangageMotsClésMinuscule
MiseEnFormeCode.Thème = codeWLangageThèmeSombre
MiseEnFormeCode.Format = codeWLangageFormatHTML
bufResHTML est un buffer = MiseEnFormeCode.MetEnForme(sCode)
"
MiseEnFormeCode is WLanguageCodeFormatting
MiseEnFormeCode.Language = languageFrench
MiseEnFormeCode.Indentation = True
MiseEnFormeCode.IncludeCSSDeclarations = True
MiseEnFormeCode.IgnoreCompilationError = True
MiseEnFormeCode.KeywordCase = WLanguageCodeKeywordLowercase
MiseEnFormeCode.Theme = WLanguageCodeThemeDark
MiseEnFormeCode.Format = WLanguageCodeFormatHTML
bufResHTML is Buffer = WLanguageCodeFormat(MiseEnFormeCode, sCode)
HTM_SansNom1 = UTF8ToString(bufResHTML)
Properties Properties specific to WLanguageCodeFormatting variables The following properties can be used to handle the WLanguage code formatting options: | | | Property name | Type used | Effect |
---|
KeywordCase | Integer constant | Uppercase or lowercase characters to be used for keywords: - codeWLanguageKeywordsShift: Keywords are capitalized.
- codeWLanguageKeywordsLowercase: Keywords are lowercase.
| Compilation | WLanguageCodeCompiling variable | Compilation options (allowed functions, forbidden functions, etc.). | Format | Integer constant | Code format:- codeWLanguageFormatTexte (Default value): Plain text.
- codeWLanguageFormatHTML Text in HTML format.
| IgnoreCompilationError | Boolean | - True to ignore compilation errors. Formatting and syntax highlighting will be less accurate.
- False (default value) otherwise.
| IncludeCSSDeclarations | Boolean | - True (default) to include the CSS declarations required for formatting and highlighting in the formatted code. This property is taken into account only if the Format property is set to WLanguageCodeFormatHTML.
- False not to include CSS declarations. In this case, you can get them using WLanguageCodeGetCSSDeclarations.
| Indentation | Boolean | - True to enable indentation,
- False (default) to disable indentation.
| Language | Integer constant | Language of code to be generated: - 0 (default): no translation, code remains in the language used.
- langueFrançais: the code is translated into French.
- languageEnglish: the code is translated into English.
Note: Only keywords, variable types, functions and properties are translated. | Theme | Integer constant | Theme used for syntax highlighting: - codeWLanguageClear theme: Use of the clear theme.
- codeWLanguageGray theme: Use of the gray theme.
- codeWLanguageDarkTheme: Using the dark theme.
|
Remarks WLanguage functions that use WLanguageCodeFormatting variables WLanguageCodeFormatting variables can be handled using the following WLanguage functions:
| | WLanguageCodeFormat | Formats WLanguage code: coloring, normalized rewriting, indentation, translation, etc. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|