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

diff_prettyHtml output hard-codes color for <ins> and <del> #90

Closed
GoogleCodeExporter opened this issue Mar 27, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

The HTML output includes hard-coded styles that specify the green/red colors 
for insert/delete. This means that overriding the default colors requires a 
Python code change. Leaving the tags bare would mean that the color can be 
easily tweaked via CSS instead.

https://code.google.com/p/google-diff-match-patch/source/browse/trunk/python2/di
ff_match_patch.py#1075

Here's an example patch (on the python2  version): 
https://bitbucket.org/pbx/diff-match-patch/commits/65b5b3

Original issue reported on code.google.com by paul.bissex on 10 Jul 2013 at 12:59

@GoogleCodeExporter
Copy link
Author

diff_prettyHtml is only intended to be an example from which to write your own 
renderer.

Original comment by neil.fra...@gmail.com on 10 Jul 2013 at 3:39

  • Changed state: Duplicate
  • Added labels: ****
  • Removed labels: ****

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

1 participant