Struct syntect::highlighting::ThemeSet [] [src]

pub struct ThemeSet {
    pub themes: BTreeMap<String, Theme>,
}

Fields

Methods

impl ThemeSet
[src]

A set of themes, includes convenient methods for loading and discovering themes.

Returns all the themes found in a folder, good for enumerating before loading one with get_theme

Loads a theme given a path to a .tmTheme file

Loads a theme given a readable stream

Loads all the themes in a folder

impl ThemeSet
[src]

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 here
  • Solarized (dark) and Solarized (light)

Trait Implementations

impl Debug for ThemeSet
[src]

Formats the value using the given formatter.