TextHighlighter.Run (gb.highlight)

Function Run ( Text As String, State As Short[] ) As Byte[]

Highlight some piece of text.

  • Text: The text to highlight. It usually must be a full line of text ended with a newline character.

  • State: The internal highlighter state.

Return the result of the highlighthing as an array of bytes.

The internal state must be initialized with a void array of bytes.

When the Run() method returns, it will be updated to reflect the state of the highlighter after the highlighting, so that you can call the Run() method again to highlight the next line of text.

The format of the result of the highlighting is not yet documented.