Skip to main content

marco_core/render/
options.rs

1// Rendering options and configuration
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6pub struct RenderOptions {
7    pub syntax_highlighting: bool,
8    pub line_numbers: bool,
9    pub theme: String,
10}
11
12impl Default for RenderOptions {
13    fn default() -> Self {
14        Self {
15            syntax_highlighting: true,
16            line_numbers: false,
17            theme: "github".to_string(),
18        }
19    }
20}