Office.js Word highlight text

Office.js Word highlight text
5

Upvotes

Upvote

 Nov 22 2021
1 Comments (1 New)
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).

Comments
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.