Change text highlight color when viewing html sourcecode

Forums » General Opera topics » Customizing Opera

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

24. June 2011, 11:00:18

Retrofox

Posts: 6

Change text highlight color when viewing html sourcecode

Hello,

first time post, so i'm hoping it goes under customization (i don't know if it's a feature request or not yet).
Using Ctrl + F on pages works great, text found are clearly highlighted. But whenever i view some html source and use ctrl + F, it's almost impossible to see what has been highlighted, as it is highlighted in light grey, for some very strange reason..
Anyone know how to change the highlight color to something more sensible?

10. July 2011, 08:44:18

sutekh

(;,;)

Posts: 207

Open your skin.zip, skin.ini

[Generic]
Selected Text bgcolor nofocus = #FF0000
Selected Text color nofocus = #FFFFFF

and/or

[Generic]
Selected text color = #FF0000
Selected text bgcolor = #FFFFFF

13. July 2011, 17:37:45

Retrofox

Posts: 6

That did the trick! Thanks sutekh :]

18. July 2011, 03:29:03

Pesala

Reclining Buddha

Posts: 25609

That was helpful, but red is no good for me since I suffer from red/green colour-blindness. This works better for me — white text on a black background for selected text, and black text on light green for nofocus text.

After more tests I changed the colours again.

[Generic]
Selected Text bgcolor nofocus = #BEDCA8
Selected Text color nofocus = #2C2C2C
Selected text color = #000000
Selected text bgcolor = #FFFF83




However, for some odd reason the colours are not used until I switch skins while Opera is running.
SkinsTipsButtonsBackupSecurityUser ScriptsLanguage ForumsWiki
Browser JSChangelogsOpera NextDragonflyBugsCrashesFTP
My WebsiteMy ForumsOpera ReviewMy FontsIrfanViewSearchDownloads
Opera 11.64 on Windows XP Home • AMD64 3500 1GB RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

18. July 2011, 16:19:42

sutekh

(;,;)

Posts: 207

Originally posted by Pesala:

That was helpful, but red is no good for me


It was red just so he can see better what exactly changes when he edits the skin

Originally posted by Pesala:

However, for some odd reason the colours are not used until I switch skins while Opera is running.


It's a bug, I submitted it, DSK-328211:

Summary: Some custom skin settings don't reapply on startup

 Steps to reproduce
 ===================
 1. Apply the attached skin to your Opera (install it manually to your "Opera directory"/skin/ dir)
 2. Notice that upon first applying all custom settings work (there is no focus rectangle, selected text background color is red, etc.)
 3. Restart Opera

 Expected result
 ===============
 Settings apply on restart, too

 Actual result
 =============
 Opera doesn't apply some settings on startup, like [Generic] Draw focusrect = 0 and [Generic] Selected Text bgcolor nofocus = #FF0000


Lately I've noticed that not even some [Options] apply properly either, like Dim Disabled Backgrounds = 0.

18. July 2011, 17:41:40

Pesala

Reclining Buddha

Posts: 25609

Originally posted by sutekh:

It's a bug, I submitted it, DSK-328211


Thanks. Good to know that I didn't do something wrong.
SkinsTipsButtonsBackupSecurityUser ScriptsLanguage ForumsWiki
Browser JSChangelogsOpera NextDragonflyBugsCrashesFTP
My WebsiteMy ForumsOpera ReviewMy FontsIrfanViewSearchDownloads
Opera 11.64 on Windows XP Home • AMD64 3500 1GB RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

21. July 2011, 19:38:53

drozdman

Posts: 239

That would be great. I was irritated with the virtual lack of selection highlight while viewing the source code. I don't understand why it doesn't work exactly the same as in a tab (which has a perfect implementation, btw).
The problem is that when you change those settings under [Generic], it changes the colors in other places.
Check Pref/Adv/Shortcuts for instance.

20. March 2012, 01:36:57

Ufft

Posts: 22

I found a workaround for this problem. Not a very good one, though.

1. Don't add the lines to the [Generic] section.
2. Go into View - Developer tools - source - find.
3. Type your search word into the search box.
4. Now select and highlight any text in the source code window, even just a couple characters.
5. I'm using XP, and the selection is highlighted with yellow text on a dark blue background.
6. Hit the "find next" or "find previous" button on the Find bar.
7. My search term now shows up highlighted, yellow on blue, as I click the find buttons.

If you go back to the Find bar, like to type some more, you will have to highlight in the window again, and then again use the find buttons.

I hope this will work for everyone.

31. March 2012, 10:38:58

Pesala

Reclining Buddha

Posts: 25609

The easiest solution is to use an external source code viewer — Preferences, Programs, Choose application for viewing source.
SkinsTipsButtonsBackupSecurityUser ScriptsLanguage ForumsWiki
Browser JSChangelogsOpera NextDragonflyBugsCrashesFTP
My WebsiteMy ForumsOpera ReviewMy FontsIrfanViewSearchDownloads
Opera 11.64 on Windows XP Home • AMD64 3500 1GB RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

8. December 2012, 16:17:01

Ufft

Posts: 22

Noticed this was fixed as of Opera 12.10. Now shows white text, green background.

Forums » General Opera topics » Customizing Opera