TextHighlighter.ToANSI (gb.highlight)

Function ToANSI ( Text As String [ , Theme As TextHighlighterTheme ] ) As String

Return the result of text highlighting as VT100 ANSI characters that can be printed on a terminal.

  • Text: The text to highlight.

  • Theme: The theme to use. If not specified, a default theme is used.