Module syntax_highlighting

Source
Expand description

Syntax highlighting for code.

Turn on the syntect feature for great syntax highlighting of any language. Otherwise, a very simple fallback will be used, that works okish for C, C++, Rust, and Python.

Structs§

CodeTheme
A selected color theme.

Functions§

code_view_ui
View some code with syntax highlighting and selection.
highlight
Add syntax highlighting to a code string.