LibLuaCodeWindow (1.0)

This library allows you to add a code window to your add-on.
The library has a built-in lexer that highlights the entered code in color.
The syntax checker is not yet public in the current version, but will be available soon with an update.
Usage:
— The default color table
defaultColors = {
keyword = “007acc”,
value = “007acc”,
vararg = “007acc”,
string = “ff9900”,
string_end = “ff9900”,
string_start = “ff9900”,
number = “a3ffae”,
ident = “389a42”,
comment = “616361”
}
— Creates a code window
— @param parent the parent UI Element
— @param colors (optional) a table of colors for the highlighting
— @returns a LibLuaCodeWindow
local window = LibLuaCodeWindow:new(parent, colors)
— Shows the code window and register an update event
— @returns the LibLuaCodeWindow
window:show()
— Hides the code window and unregister the update event
— @returns the LibLuaCodeWindow
window:hide()
— Destroys the code window and makes the ui element available for another code window
— @returns true
window:destroy()
— Get code
— @returns string the entered text
window:getText()
— Set code
— @param string the code
— @returns the LibLuaCodeWindow
window:setText(text)