- highlightSyntax
void highlightSyntax(cstring filePath, bool printHTML, bool opt_printLines)
void highlightSyntax(Module modul, bool printHTML, bool opt_printLines)
Highlights the syntax in a source file.
- highlightTokens
cstring highlightTokens(cstring text, cstring filePath, out uint lines)
Highlights tokens in a string.
- highlightTokens
void highlightTokens(Token[] tokens, bool skipWS = false)
void highlightTokens(ref CharArray buffer, Token[] tokens, bool skipWS = false)
Highlights the tokens from begin to end (both included).
- highlightTokens
void highlightTokens(cstring filePath, bool opt_printLines)
Highlights all tokens of a source file.
- print
void print(cstring s)
- print
void print(char c)
- printToken
void printToken(Token* token)
Prints a token to the stream 'print'.
- printf
void printf(cstring format, ...)
Writes arguments formatted to the buffer.
- takeText
char[] takeText()
Empties the buffer and returns its contents.
A token and syntax highlighter.