#[derive(Clone)] pub struct HighlightConfig { pub color_keyword: &'static str, pub color_string: &'static str, pub color_comment: &'static str, pub color_header: &'static str, pub color_tag: &'static str, pub color_numbers: &'static str, pub color_reset: &'static str, pub color_ip: &'static str, pub color_timestamp: &'static str, pub color_hex: &'static str, pub new_line: &'static str } impl HighlightConfig { pub fn html_colors() -> Self { Self { color_keyword: "", color_string: "", color_comment: "", color_header: "", color_tag: "", color_numbers: "", color_reset: "", color_hex: "", color_ip: "", color_timestamp: "", new_line: "
", } } } impl Default for HighlightConfig { fn default() -> Self { Self { color_keyword: "\x1b[38;2;0;255;255m", // Neon-Cyan color_string: "\x1b[38;2;255;255;85m", // Neon-Gelb color_comment: "\x1b[38;2;180;180;180m", // Helles Grau color_header: "\x1b[38;2;255;0;255m", // Knalliges Magenta color_tag: "\x1b[38;2;255;85;85m", // Neon-Rot color_numbers: "\x1b[38;2;255;0;0m", // Rot color_reset: "\x1b[0m", // Reset color_ip: "\x1b[38;2;0;170;255m", // Leuchtendes Blau color_timestamp: "\x1b[38;2;200;100;255m", // Lila/Violett color_hex: "\x1b[38;2;220;220;220m", // Helles Silber new_line: "\n", } } }