#NEWLINE# def highlight( old , new ) : #NEWLINE# #INDENT# "Given two strings, return a `HighlightedDiff` containing the strings\n    with markup identifying the parts that changed.\n\n    >>> highlight('Testify is great.', 'testify is gr8')\n    HighlightedDiff(old='<T>estify is gr<eat.>', new='<t>estify is gr<8>')\n    " #NEWLINE# ( oldchanges , newchanges ) = get_line_changed_regions ( old , new ) #NEWLINE# return HighlightedDiff ( highlight_regions ( old , oldchanges ) , highlight_regions ( new , newchanges ) )