1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-16 18:22:28 +01:00

Improve upon the documentation

This commit is contained in:
Tau Gärtli
2024-04-16 14:43:33 +02:00
parent 30b0143ccf
commit 6498615f5f
2 changed files with 15 additions and 6 deletions

View File

@@ -245,7 +245,9 @@ impl<'a> PrettyPrinter<'a> {
self
}
/// Specify the highlighting theme
/// Specify the highlighting theme.
/// You can use [`crate::theme::theme`] to pick a theme based on user preferences
/// and the terminal's background color.
pub fn theme(&mut self, theme: impl AsRef<str>) -> &mut Self {
self.config.theme = theme.as_ref().to_owned();
self