color_span/writer/html/
mod.rs

1#![doc = include_str!("readme.md")]
2mod html_fmt;
3
4///
5#[derive(Debug)]
6pub struct HtmlWriter {
7    /// has pre block
8    pub pre_block: Option<String>,
9    /// add style
10    pub style: Option<String>,
11    /// Prefix of class names
12    pub class_prefix: String,
13}
14
15impl Default for HtmlWriter {
16    fn default() -> Self {
17        Self { pre_block: Some("highlight-block rust".to_string()), style: None, class_prefix: "".to_string() }
18    }
19}
20
21/// one
22pub const ONE_DARK: &str = include_str!("one-dark.css");