diff --git a/README.md b/README.md index 3404e46..f0b15bb 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,14 @@ There are a [bunch of themes](./src/Themes) included in this package. You can lo You can build your own CSS theme with just a couple of classes, copy over [the base stylesheet](./src/Themes/highlight-light-lite.css), and make adjustments however you like. Note that `pre` tag styling isn't included in this package. +### Inline themes + +If you don't want to or can't load a CSS file, you can opt to use the `InlineTheme` class. This theme takes the path to a CSS file, and will parse it into inline styles: + +```php +$highlighter = (new Highlighter(new InlineTheme(__DIR__ . '/../src/Themes/solarized-dark.css'))); +``` + ### Terminal themes Terminal themes are more limited because of their limited styling options. Right now there's one terminal theme provided: `LightTerminalTheme`. More terminal themes are planned to be added in the future.