Skip to main content

get_syntax_theme_for_ui_theme

Function get_syntax_theme_for_ui_theme 

Source
pub fn get_syntax_theme_for_ui_theme(ui_theme: &str) -> &'static str
Expand description

Get the recommended syntax highlighting theme for a given UI theme.

For code blocks and syntax highlighting:

use vtcode_theme::{active_theme_id, get_syntax_theme_for_ui_theme};

let ui_theme = active_theme_id();
let syntax_theme = get_syntax_theme_for_ui_theme(&ui_theme);
assert!(!syntax_theme.is_empty());