Skip to content

Commit

Permalink
Merge pull request #156 from nisbet-hubbard/patch-1
Browse files Browse the repository at this point in the history
Highlight use of ansi theme for `bat` in README.md
  • Loading branch information
wofr06 authored Aug 28, 2024
2 parents 7ad3a2a + 49f125b commit a094fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ the author by email.

**LESSCOLORIZER** can be set to prefer a highlighting program from the following
choices (`nvimpager` `bat` `batcat` `pygmentize` `source-highlight` `vimcolor` `code2color`).
Otherwise the first program in that list that is installed will be used.
Otherwise the first program in that list that is installed will be used, with the caveat that `bat` will use [ansi theme](https://github.com/wofr06/lesspipe/issues/155#issuecomment-2312972276) instead of its default colors.

## 3. Required programs

Expand Down Expand Up @@ -292,7 +292,7 @@ original html file contents, two colons are required in this case.
For `pygmentize` and `bat/batcat` a restricted set of options can be added:
```
LESSCOLORIZER='pygmentize -O style=foo'
LESSCOLORIZER='bat --style=foo --theme=bar'
LESSCOLORIZER='bat --style=foo --theme=bar' # --theme=default for default theme
```
Much better syntax highlighting is obtained using the `less` emulation of `vim`:
The editor `vim` comes with a file `less.sh`, e.g. on Ubuntu located in
Expand Down

0 comments on commit a094fc3

Please sign in to comment.