Highlight specific word of node

hi every one, i have project where it shows mind map for Arabic text where the main sentence on the middle then the others nodes around it. i want it when hover the mouse on the link between 2 nodes highlight words by it’s index where i will give the indexes from db by nodeDataArray (i will add the variable) ex: node text: “hi every one i am sofe” sindex=" 0,2 ,3 "; i want the code go and highlight the
hi , one , i .
can u help me to execute this code
thank u

This would not be easy to do. You would need to compute the area that each word covers (and what happens when there is wrapping?) and draw rectangles of the appropriate size and position behind the TextBlock.

how i can do that? can u help i’m new in gojs @walter

You would need to measure and get the position of each word using HTML Canvas. https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API

Then you could create a Geometry to draw rectangles at the desired positions with the desired sizes. Create a Shape, set its Shape.geometry, and place that Shape behind the TextBlock in a Panel that encloses both. https://gojs.net/latest/api/symbols/Geometry.html