How to select/highlight target segment text base on comment

I have Custom View where  list of comments of selected segment will be displayed. Now want to achieve is, once comment selected in custom view then it should select/highlight respective text in segment.

Can anyone do needful?

See snap shot. Its in context of Comment Window in SDL Trados Studio, need to implement same feature for text selection.

Parents Reply Children