def show_diff(original, modified, prefix='<STR_LIT>', suffix='<STR_LIT>',<EOL>prefix_unchanged='<STR_LIT:U+0020>',<EOL>suffix_unchanged='<STR_LIT>',<EOL>prefix_removed='<STR_LIT:->',<EOL>suffix_removed='<STR_LIT>',<EOL>prefix_added='<STR_LIT:+>',<EOL>suffix_added='<STR_LIT>'):
import difflib<EOL>differ = difflib.Differ()<EOL>result = [prefix]<EOL>for line in differ.compare(modified.splitlines(), original.splitlines()):<EOL><INDENT>if line[<NUM_LIT:0>] == '<STR_LIT:U+0020>':<EOL><INDENT>result.append(<EOL>prefix_unchanged + line[<NUM_LIT:2>:].strip() + suffix_unchanged)<EOL><DEDENT>elif line[<NUM_LIT:0>] == '<STR_LIT:->':<EOL><INDENT>result.append(prefix_removed + line[<NUM_LIT:2>:].strip() + suffix_removed)<EOL><DEDENT>elif line[<NUM_LIT:0>] == '<STR_LIT:+>':<EOL><INDENT>result.append(prefix_added + line[<NUM_LIT:2>:].strip() + suffix_added)<EOL><DEDENT><DEDENT>result.append(suffix)<EOL>return '<STR_LIT:\n>'.join(result)<EOL>
Return the diff view between original and modified strings.

    Function checks both arguments line by line and returns a string
    with a:
    - prefix_unchanged when line is common to both sequences
    - prefix_removed when line is unique to sequence 1
    - prefix_added when line is unique to sequence 2
    and a corresponding suffix in each line
    :param original: base string
    :param modified: changed string
    :param prefix: prefix of the output string
    :param suffix: suffix of the output string
    :param prefix_unchanged: prefix of the unchanged line
    :param suffix_unchanged: suffix of the unchanged line
    :param prefix_removed: prefix of the removed line
    :param suffix_removed: suffix of the removed line
    :param prefix_added: prefix of the added line
    :param suffix_added: suffix of the added line

    :return: string with the comparison of the records
    :rtype: string