(&self)
| 30 | |
| 31 | impl HighlightTheme { |
| 32 | fn syntect_theme_name(&self) -> &'static str { |
| 33 | match self { |
| 34 | HighlightTheme::Dark => "base16-ocean.dark", |
| 35 | HighlightTheme::Light => "InspiredGitHub", |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | /// Highlight a block of code and return ratatui Lines. |
no outgoing calls
no test coverage detected