Module c_lib

Source

Structs§

TSHighlightBuffer
TSHighlighter

Enums§

ErrorCode

Functions§

ts_highlight_buffer_content
Get the HTML content of a TSHighlightBuffer instance as a raw pointer.
ts_highlight_buffer_delete
Deletes a TSHighlightBuffer instance.
ts_highlight_buffer_len
Get the length of the HTML content of a TSHighlightBuffer instance.
ts_highlight_buffer_line_count
Get the number of lines in a TSHighlightBuffer instance.
ts_highlight_buffer_line_offsets
Get the line offsets of a TSHighlightBuffer instance as a C-style array.
ts_highlight_buffer_new
ts_highlighter_add_language
Add a language to a TSHighlighter instance.
ts_highlighter_delete
Deletes a TSHighlighter instance.
ts_highlighter_highlight
Highlight a string of source code.
ts_highlighter_new
Create a new TSHighlighter instance.