Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight use of ansi theme for bat in README.md #156

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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