LGUI2:Text Scanners

From Lavish Software Wiki
Revision as of 16:47, 26 November 2018 by Lax (talk | contribs) (Created page with "A LavishGUI 2 Text Scanner is responsible for altering text appearance, usually highlighting based on the content of the text itself. LavishGUI 2 currently provides 3 Tex...")
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

A LavishGUI 2 Text Scanner is responsible for altering text appearance, usually highlighting based on the content of the text itself.

LavishGUI 2 currently provides 3 Text Scanner types:

  • raw: No alterations
  • character: Highlights specific characters, with specified colors, independent of any context. As such, this scanner can handle any text format, though in a simplified way
  • json: Highlights specific characters recognized by JSON parsers, with specified colors, currently independent of context (as with the "character" scanner)

Defining a Text Scanner

Text Scanner properties
type The type of the Text Scanner. Currently one of "raw", "character", or "json"
"raw" Text Scanner properties
"raw" Text Scanner has no properties.
"character" Text Scanner properties
characters A JSON object which maps individual characters such as "{" each to a Color. Example: { "{": [1.0,0.0,0.0], "}": [0.0,1.0,0.0] }
"json" Text Scanner properties
{ A Color definition specifying the color for this character
} A Color definition specifying the color for this character
[ A Color definition specifying the color for this character
] A Color definition specifying the color for this character
, A Color definition specifying the color for this character
" A Color definition specifying the color for this character
: A Color definition specifying the color for this character
\ A Color definition specifying the color for this character


LavishGUI 2 Topics