Skip to main content

set_code_highlight_theme

Function set_code_highlight_theme 

Source
pub fn set_code_highlight_theme(cx: &mut App, theme: CodeHighlightTheme)
Expand description

Pin code blocks to a specific syntect theme, or put them back on CodeHighlightTheme::FollowApp.

Does nothing if init_code_highlighting has not been called.