2

The file manager ranger works great, and uses the normal X resources color scheme of my terminal (urxvt). But when it shows a preview of files and highlights their syntax (presumably using highlight or pygmentize), the colors are all wrong, and look like default colors (bright blue, bright red, etc.). How can I get syntax highlighting in ranger to use the normal X colors? Running cat some-file.py | pygmentize seems to work fine and use my color scheme, but it doesn't seem to work in Ranger.

  • what do you have the colorscheme set to, for instance in rc.conf set colorscheme default is it set to default? have you tried the other colorschemes that it ships with? – WEBjuju Jan 18 '18 at 22:20
3

Change

highlight_format=xterm256

to

highlight_format=ansi

in your scope.sh and reload.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.