mannewalis / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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