cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Need an API that allows selecting over tag borders without turning balanced selections off

ovoils
6-Contributor

Need an API that allows selecting over tag borders without turning balanced selections off

We require an API that allows us to select over tag borders without turning balanced selections off.

We have to do that be cause we want to be able to select text in tags partially.

 

Here is an example:


<x>a <b>c d</b>e</x>

We like to be able to select "a" and "c", or "d" and "e" without automatically selecting "c" and "d" together.

Currently our code looks like this:


set balancedselections=off
scroll_to_oid(oid);
goto_oid(oid, offset);
CharRightExtend; repeat selLen;

Maybe it's feasible to introduce some kind of function that allows to extend right without balancing the tag selection.


scroll_to_oid(oid);
goto_oid(oid, offset);
CharRightExtendUnBalanced; repeat selLen;

Is this something that you could consider for an upcoming release?

0 REPLIES 0
Top Tags