I am using the 7.5 version, Advanced license.
From what I understand the searchAndHighlight function only works for a know string of text. In my case, I want to highligh a block of text contained between two $BLOCK_xxx$ placeholders. There could be multiple block of texts enclosed with these placeholders as well in the template, and my script doesn't know in advance what the text inside will be.