|
|
|
|
WLanguageCodeFormat (Function) In french: CodeWLangageMetEnForme Applies formatting to WLanguage code: syntax highlighting, style standardization, indentation, translation, etc.
sCode is ANSI string = "
CodeFormatting is WLanguageCodeFormatting
CodeFormatting.Language = languageEnglish
CodeFormatting.Indentation = True
CodeFormatting.IncludeCSSDeclarations = True
CodeFormatting.IgnoreCompilationError = True
CodeFormatting.KeywordCase = WLangageCodeKeywordLowercase
CodeFormatting.Theme = WLanguageCodeThemeDark
CodeFormatting.Format = WLanguageCodeFormatHTML
bufHTMLRes is Buffer = CodeFormatting.Format(sCode)
"
CodeFormatting is WLanguageCodeFormatting
CodeFormatting.Language = languageEnglish
CodeFormatting.Indentation = True
CodeFormatting.IncludeCSSDeclarations = True
CodeFormatting.IgnoreCompilationError = True
CodeFormatting.KeywordCase = WLangageCodeKeywordLowercase
CodeFormatting.Theme = WLanguageCodeThemeDark
CodeFormatting.Format = WLanguageCodeFormatHTML
bufHTMLRes is Buffer = WLanguageCodeFormatting(CodeFormatting, sCode)
HTM_NoName1 = UTF8ToString(bufHTMLRes)
Syntax
<Result> = WLanguageCodeFormat(<Parameters to use> , <Code to format>)
<Result>: Character string Formatted WLanguage code. <Parameters to use>: WLangageCodeFormatting variable Name of the WLanguageCodeFormatting variable containing the code formatting parameters. <Code to format>: Character string Code to format. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|