I was checking that you can highlight code with
pygmentize -g mycodefile
but for large files, I would like the ability to paginate the files like with
more, but when I try:
pygmentize -g mycodefile | less
The output is not correct, example:
How can I paginate a file in shell with code highlight?
pygmentize -g mycodefile | less -R
less shows ANSI colour sequences.
Answered By – abligh
Answer Checked By – David Marino (AngularFixing Volunteer)