{"action":"opened","issue":{"url":"https://api.github.com/repos/hut/ranger/issues/547","repository_url":"https://api.github.com/repos/hut/ranger","labels_url":"https://api.github.com/repos/hut/ranger/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/hut/ranger/issues/547/comments","events_url":"https://api.github.com/repos/hut/ranger/issues/547/events","html_url":"https://github.com/hut/ranger/issues/547","id":155356243,"number":547,"title":"I would like to change the syntax highlighting colours for file previews.","user":{"login":"krompus","id":12161878,"avatar_url":"https://avatars.githubusercontent.com/u/12161878?v=3","gravatar_id":"","url":"https://api.github.com/users/krompus","html_url":"https://github.com/krompus","followers_url":"https://api.github.com/users/krompus/followers","following_url":"https://api.github.com/users/krompus/following{/other_user}","gists_url":"https://api.github.com/users/krompus/gists{/gist_id}","starred_url":"https://api.github.com/users/krompus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krompus/subscriptions","organizations_url":"https://api.github.com/users/krompus/orgs","repos_url":"https://api.github.com/users/krompus/repos","events_url":"https://api.github.com/users/krompus/events{/privacy}","received_events_url":"https://api.github.com/users/krompus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T20:39:56Z","updated_at":"2016-05-17T20:39:56Z","closed_at":null,"body":"This isn't necessarily a problem with ranger itself, but I'd still like to figure this out.\r\n\r\nI had a look at ~/.config/ranger/scope.sh, and found the relevant lines:\r\n\r\n    # Syntax highlight for text files:\r\n    text/* | */xml)\r\n        try safepipe highlight --out-format=ansi \"$path\" && { dump | trim; exit 5; }\r\n        try safepipe pygmentize \"$path\" && { dump | trim; exit 5; }\r\n        exit 2;;\r\n\r\nBut when I try using `highlight`s `--style=matrix` (for example), it still shows the default colourscheme.\r\n\r\nI edited the highlight line to this:\r\n    try safepipe highlight --style=matrix --out-format=ansi \"$path\" && { dump | trim; exit 5; }\r\n\r\nI've tried with a few different style names, and I've fiddled with that line. No dice.\r\n\r\nYou can list the available `highlight` themes with `ls /usr/share/highlight/themes/`, by the way.\r\n\r\nAny ideas how to get it working?"}}