Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

pretty diff highlighter; emphasis changed words in diff

Project Description

diff-highlight: pretty diff highlighter; emphasis changed words in diff

diff-highlight adds word highlighting feature to git, mercurial and other diff viewers.


  • Add highlights to diff output
  • mercurial extension for diff highlighting


Use easy_install or pip:

$ sudo easy_install diff-highlight


$ sudo pip diff-highlight

Applying to git

Add pager settings to your $HOME/.gitconfig to enable word highlights:

    log = diff-highlight | less
    show = diff-highlight | less
    diff = diff-highlight | less

Applying to mercurial

Add color and diff_highlight extensions to your $HOME/.hgrc to enable word highlights:

color =
diff_highlight =


  • Python 2.6, 2.7, 3.2, 3.3, 3.4 (mercurial extension works on python 2.x only)


Apache License 2.0 (highlights/ is under PSFL)


1.2.0 (2016-02-07)

  • Grouping indented hunks
  • Fix #1: highlight if large text appended
  • Fix mercurial extension has been broken since mercurial-3.7.0

1.1.0 (2015-07-12)

  • Drop py24 and py25 support
  • Support git styled diff

1.0.3 (2015-03-30)

  • Ignore IOError on showing result

1.0.2 (2014-06-08)

  • Fix result of diff-highlight commannd is broken when diff-text includes new file (thanks @troter)

1.0.1 (2013-12-22)

  • Fix diff-highlight command failed with python 2.4

1.0.0 (2013-12-22)

  • Add diff-highlight command
  • Support python 2.4, 2.5, 3.2 and 3.3

0.1.0 (2013-12-20)

  • first release
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
diff_highlight-1.2.0-py2.py3-none-any.whl (10.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Feb 7, 2016
diff-highlight-1.2.0.tar.gz (11.2 kB) Copy SHA256 Checksum SHA256 Source Feb 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting