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 ...
Zounds asked 27/8, 2009 at 16:34

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...
Gregson asked 16/3, 2011 at 13:29

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...
Ebb asked 26/11, 2008 at 16:21

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...
Allottee asked 10/5, 2009 at 16:52

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...
Stereochrome asked 24/5, 2015 at 21:12

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...
Guano asked 5/10, 2019 at 14:52

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...
Federalize asked 15/2, 2019 at 11:19

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...
Kingship asked 20/8, 2016 at 15:46

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 (...
Sphygmoid asked 19/12, 2009 at 21:13

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...

12

Solved

I frequently need to compare SQL procedures to determine what has changed in the newest version. The problem is, everyone has their own style of formatting, and SQL doesn't (usually) care abo...
Zischke asked 20/11, 2009 at 21:19

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...
Yann asked 12/4, 2011 at 14:58

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...
Frauenfeld asked 11/1, 2012 at 11:53

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?
Legionary asked 6/2, 2011 at 4:34

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...
For asked 9/4, 2010 at 3:18

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...
Frequentation asked 16/10, 2008 at 10:53
1

© 2022 - 2024 — McMap. All rights reserved.