Is it possible to highlight words on document load?

After rendering a document is it possible to highlight a set of words, similar to how the search function highlights?

For example we might want to highlight every occurrence of ‘dog’, ‘cat’ and ‘mouse’ in the document.

Also, is it possible to highlight based off of a regular expression match?

Thanks

Hello,

Thank you for your inquiry.

Yes, you can highlight a set of words after rendering a document. For this you should add a parameter " .SearchForSeparateWords()" to Viewer widget code and also add this js code to html tag:


You should know, that "#test" - it is ID for
tag for Viewer widget.

If you will have more questions please feel free to contact us.

--------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+