github-cheat-sheet icon indicating copy to clipboard operation
github-cheat-sheet copied to clipboard

Is it possible to display highlighted word diff in github pages?

Open ryrych opened this issue 9 years ago • 4 comments

Hi,

I often use diff --color-words for smaller changes. For what I see github supports that, but I can't see how to enable that via pygments highlighter. Is it possible?

ryrych avatar Dec 13 '15 01:12 ryrych

If I understand what you mean:

```diff
    --- funtion() {}
    +++ function() {}
```

Which output this:

--- funtion() {}
+++ function() {}

yang-wei avatar Dec 13 '15 16:12 yang-wei

I rather meant something like this: http://ryrych.github.io/2015/12/13/using-word-diff-for-smaller-changes-in-git.html

or https://github.com/tiimgreen/github-cheat-sheet/pull/126/files

ryrych avatar Dec 13 '15 17:12 ryrych