Office.js Word highlight text

Office.js Word highlight text



 Nov 22 2021
1 Comments (1 New)

I'm attempting to implement functionality to highlight some text within a Word document. I don't want to modify the document, much like when you perform a search with Find and Replace feature (and text matching your search is highlighted in yellow).

Occasional Visitor

Yeah I'm missing such a functionality as well. One could just select text programmatically and Word "highlights" it just like a user selects some text. But this enables only one portion of text at a time, since multiple selections are not supported.