4 ms·
I wish Icdiff had syntax highlighting for common programming languages.
by tutfbhuf 6y ago
I wish Icdiff had syntax highlighting for common programming languages.
- wffurr 6y agoWouldn't the syntax coloring interfere with the diff coloring? Is there an example of a tool that does both?
- rgoulter 6y agoAt least one of the other tools in this thread does both. (Rather than visualising add/rm with the foreground, it's visualised with the background colour). https://github.com/dandavison/delta https://github.com/dandavison/delta
- tutfbhuf 6y agoYes, but delta doesn't have side-by-side diff. Is someone aware of a command line util, that has side-by-side diff and syntax highlighting? I know that Gitlab can do that.
- jefftk 6y agoLooks like delta has an open issue: https://github.com/dandavison/delta/issues/86 https://github.com/dandavison/delta/issues/86
- Liquid_Fire 6y agovimdiff does that.
- tutfbhuf 6y agoTrue, but vimdiff is a wrapper around vim, that starts the editor with pre-arranged windows. I would like to have a non-interactive stand-alone tool, that prints the syntax highlighted side-by-side to the terminal then exits and does not require you to learn vim. Maybe such a thing does not exist yet and I have to wait for delta issue #86 to happen.
- corytheboyd 6y agoAgree with this point. If your diff is so large you need syntax highlighting to make sense of it maybe you should step back and evaluate your version control habits. A diff tool should focus on what changed and nothing else.
- jefftk 6y agoI'd be happy to review a PR! https://github.com/jeffkaufman/icdiff https://github.com/jeffkaufman/icdiff