Difference between revisions of "LGUI2:Text Scanners"

From Lavish Software Wiki
Jump to navigation Jump to search
(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...")
 
(Replaced content with "'''This topic is being replaced with up to date information'''")
Line 1: Line 1:
A [[LavishGUI 2]] Text Scanner is responsible for altering text appearance, usually highlighting based on the content of the text itself.
+
'''This topic is being replaced with up to date information'''
 
 
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 ==
 
 
 
{| border="1" style="border-collapse:collapse" cellpadding="5"
 
!colspan="2"|Text Scanner properties
 
|-
 
! type
 
| The type of the Text Scanner. Currently one of "raw", "character", or "json"
 
|-
 
!colspan="2"|"raw" Text Scanner properties
 
|-
 
|colspan="2"|"raw" Text Scanner has no properties.
 
|-
 
!colspan="2"|"character" Text Scanner properties
 
|-
 
! characters
 
| A JSON object which maps individual characters such as "{" each to a [[LGUI2:Color|Color]]. Example: <tt>{ "{": [1.0,0.0,0.0], "}": [0.0,1.0,0.0] }</tt>
 
|-
 
!colspan="2"|"json" Text Scanner properties
 
|-
 
!{
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
!}
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
![
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
!]
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
!,
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
!"
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
!:
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|-
 
!\
 
| A [[LGUI2:Color|Color]] definition specifying the color for this character
 
|}
 
 
 
 
 
{{LGUI2:Topic}}
 
 
 
[[Category:LavishGUI 2 Text]]
 

Revision as of 15:13, 10 December 2018

This topic is being replaced with up to date information