Text Highlight: Added a dynamic functionality
Addresses #6126
Text Highlight: Added test case
Merge pull request #6132 from LaurentGoderre/implement-6126

Text Highlight: Added dynamic functionality and test cases