Is there a way to change highlight colors for found text?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
john1857
Posts: 21
Joined: Wed Oct 09, 2019 6:02 pm

Is there a way to change highlight colors for found text?

Post by john1857 »

Something I frequently do is search for a particular regex. With other editors the found text is usually highlighted clearly, but in Textpad it's highlighted in a pale gray while the Find dialog has focus, and I can't distinguish this from normal text. I have to click on the main window before it's highlighted in a visible way, and then click back to the find dialog if I want to continue searching. I can of course "mark all", but this has disadvantages (the lines are marked but the text might be off-screen if the line is long, so then I have to word-wrap; and if I already have lines marked, I have to cancel them if I want to step through just the lines that match what I'm searching for).

I have searched the settings, but I can't find anything as simple as setting the highlight color. Am I missing something, or is there really no way to do this?
User avatar
Mr. Code Monkey
Posts: 38
Joined: Thu Jul 30, 2009 4:59 am

Re: Is there a way to change highlight colors for found text?

Post by Mr. Code Monkey »

Thanks, john1857. I never noticed how annoying that was until now. Really, thanks a lot... :P

I second this feature request. There does not seem to be setting in either TextPad, nor windows for this. A spot check of other programs show they have much better contrast/colors for found-results display.
MarJohn
Posts: 38
Joined: Sun Oct 17, 2021 6:17 am

Re: Is there a way to change highlight colors for found text?

Post by MarJohn »

I might be the one missing something simple, but can't you use Configure, Preferences, Document Classes, Search, Colours - as shown here:
Attachments
Preferences, Document Classes, Search Results, Colors.png
Preferences, Document Classes, Search Results, Colors.png (28.09 KiB) Viewed 1219 times
User avatar
bbadmin
Site Admin
Posts: 938
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Is there a way to change highlight colors for found text?

Post by bbadmin »

Change the background color of "Selected text (no focus)" for your document classes. The default color works in the dark theme, but it needs tweaking a bit with a white background. We'll change the default to this in the next release:

Screenshot 2025-05-07 071500.png
Screenshot 2025-05-07 071500.png (210.44 KiB) Viewed 1212 times

Note that you can close the Find dialog box after the first match, then use Ctrl+F to find subsequent matches, which will be highlighted in the background color of "Selected text".
User avatar
Mr. Code Monkey
Posts: 38
Joined: Thu Jul 30, 2009 4:59 am

Re: Is there a way to change highlight colors for found text?

Post by Mr. Code Monkey »

Thanks that worked. And I found Color settings not showing for applying it across all document classes.
Last edited by Mr. Code Monkey on Wed May 07, 2025 9:42 pm, edited 1 time in total.
john1857
Posts: 21
Joined: Wed Oct 09, 2019 6:02 pm

Re: Is there a way to change highlight colors for found text?

Post by john1857 »

bbadmin wrote: Wed May 07, 2025 5:51 am Change the background color of "Selected text (no focus)" for your document classes. The default color works in the dark theme, but it needs tweaking a bit with a white background. We'll change the default to this in the next release:
Thanks. It seems I have to do it for each document class -- but I read in another post that you said " If you want to propagate its settings to all document classes, set that option before clicking OK."

I can't find a "propagate" option -- tried "Set defaults" but that just restores the defaults. What am I missing now?
Note that you can close the Find dialog box after the first match, then use Ctrl+F to find subsequent matches, which will be highlighted in the background color of "Selected text".
Yes, true. Thanks.
User avatar
Mr. Code Monkey
Posts: 38
Joined: Thu Jul 30, 2009 4:59 am

Re: Is there a way to change highlight colors for found text?

Post by Mr. Code Monkey »

john1857 wrote: Fri May 09, 2025 12:46 pm I can't find a "propagate" option -- tried "Set defaults" but that just restores the defaults. What am I missing now?
Yeah, it's a bit counterintuitive. Find it here:
.
apply to all setting.png
apply to all setting.png (57.53 KiB) Viewed 678 times
john1857
Posts: 21
Joined: Wed Oct 09, 2019 6:02 pm

Re: Is there a way to change highlight colors for found text?

Post by john1857 »

Aha! Fine, all working now. Many thanks.
Post Reply