klyn.code.highlighters.SyntaxStyle.SyntaxStyle
constructor
public SyntaxStyle(
fgRed as Int = 215,
fgGreen as Int = 225,
fgBlue as Int = 235,
bgRed as Int = 0,
bgGreen as Int = 0,
bgBlue as Int = 0,
bold as Boolean = false,
underline as Boolean = false,
inverse as Boolean = false,
italic as Boolean = false
)
Description

Builds a syntax style with explicit RGB colors and text attributes.

Parameters
ParameterDescription
fgRedForeground red component (0..255).
fgGreenForeground green component (0..255).
fgBlueForeground blue component (0..255).
bgRedBackground red component (0..255).
bgGreenBackground green component (0..255).
bgBlueBackground blue component (0..255).
boldtrue when rendered in bold weight.
underlinetrue when rendered with an underline.
inversetrue when foreground and background are swapped.
italictrue when rendered in italic posture.
Example
import klyn.code.highlighters

s = SyntaxStyle(206, 145, 120)
assert s.fgRed == 206