GetTextFormatting
This function was added in DSL 1
Description
Get a text formatting table representing the current text formatting options for later re-application with SetTextFormatting
.
This function is usually the less preferable option compared to PopTextFormatting
.
function GetTextFormatting() --[[ ... ]] end
Parameters
None.
Return Values
formatTable
:table
- A table containing the current text formatting options.
Example
local formatTable = GetTextFormatting()
-- Use the formatTable for later re-application
SetTextFormatting(formatTable)