Limit on highlighting parts

hello my fellow developians, i have been experimenting with highlighting and it seems like the parts get limited after a certain amount have been highlighted,

image

are there any workarounds to this// anyway to fix this?? thanks

Could you share the code you’re using to accomplish this?