@@ -2,6 +2,7 @@ use std::ffi::OsStr;
22use std::io::Read;
33
44use console::Term;
5+use syntect::parsing::SyntaxReference;
56
67use crate::{
78 assets::HighlightingAssets,
@@ -201,6 +202,14 @@ impl<'a> PrettyPrinter<'a> {
201202 self
202203 }
203204
205+ pub fn themes(&self) -> impl Iterator<Item = &str> {
206+ self.assets.themes()
207+ }
208+
209+ pub fn syntaxes(&self) -> impl Iterator<Item = &SyntaxReference> {
210+ self.assets.syntaxes().iter()
211+ }
212+
204213 /// Pretty-print all specified inputs. This method will "use" all stored inputs.
205214 /// If you want to call 'print' multiple times, you have to call the appropriate
206215 /// input_* methods again.