I have to highlight words or substrings based on positions that I am getting from the database. But the issue is I don\'t know how to use getSelection() and Range. Please lo