Highlighter.highlightTokens

Highlights the tokens from begin to end (both included).

  1. cstring highlightTokens(cstring text, cstring filePath, out uint lines)
  2. void highlightTokens(Token[] tokens, bool skipWS = false)
  3. void highlightTokens(ref CharArray buffer, Token[] tokens, bool skipWS = false)
    class Highlighter
    void
    highlightTokens
    (
    ref CharArray buffer
    ,
    Token[] tokens
    ,
    bool skipWS = false
    )
  4. void highlightTokens(cstring filePath, bool opt_printLines)

Parameters

skipWS
Type: bool

Skips whitespace tokens (e.g. comments) if true.

Return Value

Type: void

A string with the highlighted tokens.

Meta