Closed nongcaro closed 4 years ago
Tooltip is generated in method OnToolTip.
There is hard-coded pattern for tooltip:
string hoveredWord = r.GetFragment("[a-zA-Z]").Text;
You can make separate property that will contain pattern and use it.
@PavelTorgashov Am I supposed to override OnToolTip
?
My Regex is not working, but it's working in Regex101, what's the case with this?
For an example, \=[0-9]*
doesn't work, but just [0-9]
works.
@nongcaro Fragment regex is expression for one char only. Therefore modificators like * - do not work in this case.
@PavelTorgashov I want to match complete expressions, is it possible? For an example, I want to match everything between []
if the cursor is hovered inside it?
Never mind it, made my own function.
Tooltip only shows hovered words. I want to change it to a custom pattern. How do I go about doing this?