implement add_only, diff_only, diff_chars, and show_spaces parameters