js code:
var EM_SETSEL = 0xb1;
function OnWindowIdEvent_EditTextChanged( pPlusWnd, sControlId ) {
if ( sControlId === 'MyRichEditControl' ) {
var hObjWnd = pPlusWnd.GetControlHandle ( sControlId );
Interop.Call( 'user32', 'SendMessageW', hObjWnd, EM_SETSEL, 0, 10 );
}
}
This is just an example on how to select text. What are you trying to highlight? Code?
You also need to make sure the control in the XML has the following set:
xml code:
<Attributes><TextMode>Rich Text</TextMode></Attributes>