mirror of
https://github.com/CoeJoder/lessfilter-pygmentize.git
synced 2025-11-08 05:03:48 -05:00
Fix #2 and update .lessfilter to Pygments v2.14.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user