esp. nice with diffs, just like you get with git diff.
_May be simplest just to create a diff_print function to print each line, colour green if startswith +, red if startswith -, and pink background (?) of trailing whitespace (Note: git does this just for + lines, but seems reasonable to do it for both + and -)._
esp. nice with diffs, just like you get with git diff.
_May be simplest just to create a
diff_print
function to print each line, colour green if startswith +, red if startswith -, and pink background (?) of trailing whitespace (Note: git does this just for + lines, but seems reasonable to do it for both + and -)._colorama seems like a reasonable choice.