word-diff Questions
7
Solved
This StackOverflow answer has an image of KDiff3 highlighting intra-line differences. Does someone know of a tool which can show the same (ex, via color) on the command line?
Another way to think ...
14
Open Source project Trac has an excellent diff highlighter — it highlights changed lines and changed bytes in each changed line! See here or here for examples.
Is there way to use the same c...
17
Solved
What is the easiest way to highlight the difference between two strings in PHP?
I'm thinking along the lines of the Stack Overflow edit history page, where new text is in green and removed text is...
3
Solved
Just trying to get diff to work better for certain kinds of documents. With LaTeX, for example, I might have a long paragraph that is strictly just one line, but I don't want to see that entire par...
3
Solved
git diff has option --word-diff-regex=<...> that matches words. There are special default values for some languages (as said in man 5 gitattributes). But what are these? No description in doc...
1
I'm using Git to version prose and have been trying git diff --word-diff to see changes within lines. I want to use the results generated in a script.
But the default way that --word-diff identifi...
2
Is it possible to set an option that git diff is always using --word-diff=color whenever displaying diffs?
I know that there are command line arguments for gitk, git-gui and git diff, but are ther...
Hesperidium asked 28/9, 2015 at 20:41
1
I needed to edit a messy commit commit that only changed a word in a few subsequent rows, keeping some of those changes and removing others.
The changes were easy to see in git diff --word-diff, an...
2
Solved
To illustrate the problem: see diff
the only diff in this paragraph (starting with A macro that needs is whitespace differences (newlines inserted / removed in certain places);
when running git ...
Unidirectional asked 31/8, 2018 at 23:30
1
I'm exploring usage of github for text versioning. A major problem with github is the fact that changes are by line. So if you make a word or phrase change that is rather granular, the whole line a...
4
Solved
I would like to show the differences between two blocks of text. Rather than comparing lines of text or individual characters, I would like to just compare words separated by specified characters (...
12
Solved
Profiling shows this is the slowest segment of my code for a little word game I wrote:
def distance(word1, word2):
difference = 0
for i in range(len(word1)):
if word1[i] != word2[i]:
differenc...
Sandra asked 25/4, 2009 at 2:20
12
Solved
5
Solved
How can I get output like in git diff --color-words, but outside Git?
Closest thing is wdiff -t, but it underlines/inverts things instead of using green/red colours and does not allow specifying m...
1
I'm having trouble with git diff --word-diff. The thing is when diff gets file without newlines (one line file) it differrs it line by line. And I want to differ it word by word.
Here's what happe...
1
Solved
I would like to have git diff outputs me regular diffs for all files, except *.tex. For *.tex files, I would like to see the output of git diff --word-diff.
I was playing around with .gitattribute...
Facilitation asked 24/9, 2011 at 23:10
1
Solved
is there a command line program that gives recursive word-based diff (on 2 directories)?
diff -u is recursive, but it doesn't do word by word comparison. wdiff and dwdiff does word based diff but ...
Myrtamyrtaceous asked 13/2, 2011 at 0:53
2
Solved
I know that git diff --word-diff=color shows a word diff between the working tree and HEAD, but is there a way to get the same kind of output with git log?
2
Solved
Does anybody know of a diff-like tool that can show me the changes between two text files, but ignore changes in whitespace including newlines?
Here's an example:
the quick brown fox jumped over...
1
Solved
I have two strings and would like to display the difference between them. For example, if I have the strings "I am from Mars" and "I am from Venus", the output could be "I am from Venus". (Typicall...
1
© 2022 - 2024 — McMap. All rights reserved.