3 ms·
Delta[0] applies syntax highlighting to the code sections of git and diff output, and uses background colors (instead of +/-) to indicate added / removed conten
by Myrmornis 7y ago
Delta[0] applies syntax highlighting to the code sections of git and diff output, and uses background colors (instead of +/-) to indicate added / removed content. It's written in Rust, and uses the syntect[1] highlighting library. That's the same library that bat[2] uses, so delta supports all the same color themes, and any bat configuration that you already have in place (environment variables, custom themes/language support) is automatically honored by delta. Delta also infers and highlights substrings that differ between lines (similar to Github, Gitlab and other diff viewers) and optionally cleans up the raw diff output slightly to make it more human readable.
[0] https://github.com/dandavison/delta https://github.com/dandavison/delta
[1] https://github.com/trishume/syntect https://github.com/trishume/syntect
[2] http://github.com/sharkdp/bat/ http://github.com/sharkdp/bat/