Wilfred / difftastic

a structural diff that understands syntax 🟥🟩

Home Page:https://difftastic.wilfred.me.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to disable syntax highlighting?

ralph-bergmann opened this issue · comments

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:
SCR-20240302-mudz

How can I turn off syntax highlighting in my ~/.gitconfig?

[diff]
   tool = difftastic
   external = difft

[difftool]
   prompt = false

[difftool "difftastic"]
   cmd = difft "$LOCAL" "$REMOTE"

https://github.com/Wilfred/difftastic/blob/master/src/options.rs

--syntax_highlight=off
or env var
DFT_SYNTAX_HIGHLIGHT=off

add to the command

Yep, the argument or environment variable. See also difft --help :)