home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

List The CSS Themes In Rust's syntect Syntax Highlighting Crate

April 2024
Code
```cargo
[dependencies]
syntect = "5.2.0"
```

use syntect::highlighting::ThemeSet;

fn main() {
  list_themes();
}

fn list_themes() {
  let ts = ThemeSet::load_defaults();
  ts.themes.iter().for_each(|theme| {
    println!("{}", theme.0);
  })
}
Results
InspiredGitHub
Solarized (dark)
Solarized (light)
base16-eighties.dark
base16-mocha.dark
base16-ocean.dark
base16-ocean.light
═══ § ═══