Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Occurrences highlighting

(1/9) > >>

danselmi:
With this patch the editor will highlight (draw a red box aroud) all occurences in the current document of the selected text.
The feature is selectabel/deselectable throught the editor settings dialog.

screenshot attached

patch id: 002525.


[attachment deleted by admin]

thomas:
I'm not quite happy yet because of two things:
1. it triggers from UpdateUI which means it adds a lot of overhead to typing and even moving the mouse
2. on a second thought, there's only one thing


Other than that: Great! Works nicely. I'll have a look if I find something better to hook it into.

dje:
Very nice feature !!
Is it possible to highlight only whole words with same case ?

Dje

killerbot:
very nice. I think once Thomas has found a better cpu relaxing idea, and the case issue is solved this is a very nice addition :-)

thomas:
Bah... UpdateUI is the official event for selection changes, and there's nothing else. But it's possible to do a quick range test at the beginning, and return without searching through all the text, that should eleminate the overhead almost entirely. Just compiling.

Navigation

[0] Message Index

[#] Next page

Go to full version