Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 2, 2024
1 parent 4f3c048 commit e2e6cd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e2e6cd3

Please sign in to comment.