Fix #2 and update .lessfilter to Pygments v2.14.0

This commit is contained in:
CoeJoder
2023-01-01 21:44:53 -08:00
parent 5fc71d9e20
commit e5d89d3d2b
4 changed files with 51 additions and 51 deletions

View File

@@ -7,7 +7,7 @@ for supported file types. The `.lessfilter` is generated by parsing the Pygment
### 1. Install Pygments & gawk
Ensure that you have the latest version of Pygments installed by using [pip](https://pypi.org/project/pip/), as your
distro's packaged version is likely outdated. You'll also need `gawk`.
distro's packaged version is likely outdated. You'll also need `awk`.
```shell
# remove any installed packaged versions
sudo apt autoremove python-pygments python3-pygments
@@ -15,7 +15,7 @@ sudo apt autoremove python-pygments python3-pygments
# install latest version
sudo pip install Pygments --upgrade
# install gawk
# install some implementation of `awk`
sudo apt install gawk
```
@@ -49,7 +49,7 @@ export LESSOPEN='|~/.lessfilter %s'
### 4. Create ~/.lessfilter
Run [main.py](main.py) to generate the latest `.lessfilter` file and place it in your home directory.
Or you can download a pre-generated [.lessfilter](.lessfilter) which is currently at version `2.13.0`.
Or you can download a pre-generated [.lessfilter](.lessfilter) which is currently at version `2.14.0`.
Check your program version by running `pygmentize -V` to ensure that it is this version or newer.
### 5. Make ~/.lessfilter executable