Highlight other instances of selected text

Post Reply
u202-10-03
Posts: 5
Joined: 03.10.2025 19:46

Highlight other instances of selected text

Post by u202-10-03 »

Hi,

Is there a plugin, or setting I can enable, so that for e.g. this sample text:

Code: Select all

Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:43:27
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:44:07
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:44:47
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:45:27
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:46:07
If I were to double-click on the word "session", on the first line, then all other instances of that same word in the file would be highlighted?

This is a feature I've seen a lot in other applications like Notepad++ and SublimeText and I wondered if there is anything similar in CudaText?

I have searched for similar on this forum but nothing was returned due to the words being too common.

Thanks
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Re: Highlight other instances of selected text

Post by main Alexey »

and proper name of the plugin is written in the 'install.inf' file there. to enter it in AddonsManager.
mix-7
Posts: 1005
Joined: 11.05.2018 11:02

Re: Highlight other instances of selected text

Post by mix-7 »

How can this be used?
For what purposes?
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Re: Highlight other instances of selected text

Post by main Alexey »

@mix-7,
in IDE (Lazarus) it is useful (highlight occurences). I select an ID in the middle of a function, and IDE highlightes all places of this ID. so I can see do I need many changes if I change the ID.
mix-7
Posts: 1005
Joined: 11.05.2018 11:02

Re: Highlight other instances of selected text

Post by mix-7 »

Thank you!
Very useful function!
I will also think how to use it for my notes.
mix-7
Posts: 1005
Joined: 11.05.2018 11:02

Re: Highlight other instances of selected text

Post by mix-7 »

@main Alexey,

> highlightes all places of this ID

Does this Highlight Occurrences plugin highlight all places in the entire tab or only in the visible section?
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Re: Highlight other instances of selected text

Post by main Alexey »

It is optional. See the configuration-dialog of that plugin. It has option 'visible_fallback', it's text is:

>>When text is over max_lines - fallback to highlighting only in visible text
Post Reply