Struct syntect::highlighting::ThemeSet
[−]
[src]
pub struct ThemeSet { pub themes: BTreeMap<String, Theme>, }
Fields
themes: BTreeMap<String, Theme>
Methods
impl ThemeSet
[src]
A set of themes, includes convenient methods for loading and discovering themes.
fn discover_theme_paths<P: AsRef<Path>>(
folder: P
) -> Result<Vec<PathBuf>, LoadingError>
folder: P
) -> Result<Vec<PathBuf>, LoadingError>
Returns all the themes found in a folder, good for enumerating before loading one with get_theme
fn get_theme<P: AsRef<Path>>(path: P) -> Result<Theme, LoadingError>
Loads a theme given a path to a .tmTheme file
fn load_from_reader<R: BufRead + Seek>(r: &mut R) -> Result<Theme, LoadingError>
Loads a theme given a readable stream
fn load_from_folder<P: AsRef<Path>>(folder: P) -> Result<ThemeSet, LoadingError>
Loads all the themes in a folder
impl ThemeSet
[src]
fn load_defaults() -> ThemeSet
Loads the set of default themes Currently includes (these are the keys for the map):
base16-ocean.dark
,base16-eighties.dark
,base16-mocha.dark
,base16-ocean.light
InspiredGitHub
from hereSolarized (dark)
andSolarized (light)