How to disable syntax highlighting?
ralph-bergmann opened this issue · comments
Ralph Bergmann commented
There is an option to turn off syntax highlighting, but I have no clue how to use it :-(
I use difftastic
to make git diff
better. But sometimes, it has some bold text coming from syntax highlighting, which makes it hard to find the changes:
How can I turn off syntax highlighting in my ~/.gitconfig
?
[diff]
tool = difftastic
external = difft
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
Gerhard Olsson commented
https://github.com/Wilfred/difftastic/blob/master/src/options.rs
--syntax_highlight=off
or env var
DFT_SYNTAX_HIGHLIGHT=off
add to the command
Wilfred Hughes commented
Yep, the argument or environment variable. See also difft --help
:)