diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index cca25e5..50bc5a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,8 @@ use syntect::parsing::SyntaxSet; fn main() { let syntax_set = SyntaxSet::load_defaults_newlines(); let theme_set = ThemeSet::load_defaults(); - let theme = &theme_set.themes["base16-ocean.dark"]; + let mut theme = theme_set.themes["InspiredGitHub"].clone(); + theme.settings.background = None; let filename = std::env::args().nth(1).map(PathBuf::from); let extension = filename @@ -26,6 +27,6 @@ fn main() { }; let highlighted_file = - highlighted_html_for_string(&file, &syntax_set, syntax, theme).unwrap_or(file); + highlighted_html_for_string(&file, &syntax_set, syntax, &theme).unwrap_or(file); println!("{highlighted_file}"); } |
