mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-12 05:19:05 +01:00
Use default for highlighting theme
This commit is contained in:
parent
a979608f37
commit
ab10a20c1f
@ -35,8 +35,8 @@ type LineChanges = HashMap<u32, LineChange>;
|
|||||||
|
|
||||||
fn print_file<P: AsRef<Path>>(filename: P, line_changes: Option<LineChanges>) -> io::Result<()> {
|
fn print_file<P: AsRef<Path>>(filename: P, line_changes: Option<LineChanges>) -> io::Result<()> {
|
||||||
let ss = SyntaxSet::load_defaults_nonewlines();
|
let ss = SyntaxSet::load_defaults_nonewlines();
|
||||||
let ts = ThemeSet::load_from_folder("/home/shark/Informatik/rust/bat/themes").unwrap();
|
let ts = ThemeSet::load_defaults();
|
||||||
let theme = &ts.themes["Monokai"];
|
let theme = &ts.themes["base16-eighties.dark"];
|
||||||
|
|
||||||
let mut highlighter = HighlightFile::new(filename, &ss, theme)?;
|
let mut highlighter = HighlightFile::new(filename, &ss, theme)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user