Skip to main content

DEFAULT_SYNTAX_THEME

Constant DEFAULT_SYNTAX_THEME 

Source
pub const DEFAULT_SYNTAX_THEME: &str = "InspiredGitHub";
Expand description

Default syntax highlighting theme (InspiredGitHub).

Must name a theme bundled with syntect, because mdx-gen validates syntax_theme against SyntectAdapter::available_themes() and rejects anything outside that set. InspiredGitHub is the bundled GitHub-flavoured light theme.

ยงExamples

use html_generator::constants::DEFAULT_SYNTAX_THEME;
assert_eq!(DEFAULT_SYNTAX_THEME, "InspiredGitHub");