Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryrych opened this issue Dec 13, 2015 · 4 comments
Open

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

ryrych opened this issue Dec 13, 2015 · 4 comments

Comments

@ryrych
Copy link

ryrych commented Dec 13, 2015

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?

@yang-wei
Copy link
Contributor

If I understand what you mean:

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

Which output this:

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

@ryrych
Copy link
Author

ryrych commented Dec 13, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@ryrych @tiimgreen @yang-wei and others