JSON background color yellow, doesn't match color settings

I'm not understanding this:

Why is the JSON text background color yellow in the file tab, but not in settings? None of the settings I clicked through show that background color. The only one that has a background color is Invalid Escape Sequence, which is pink.

3 comments
Comment actions Permalink

It might be this JSON section is marked as a Warning for some reason (General > Errors and Warnings > Warning).

Also, there is one trick to find out the applied color scheme settings. Put a caret on a section that you would like to inspect, invoke "Search Everywhere" and type "Jump to colors", that should help. 

0
Comment actions Permalink

OK so I see the color in Warnings, but it appears to be highlighting the entire text instead of the lines that have the warnings (1 and 32):

Why is it highlighting every line when the warnings are only on two lines?

I'm not sure what you mean by 'invoke "Search Everywhere"'.

0
Comment actions Permalink

It happens as the "Description" property is missing in the general, top-level section of the JSON file (within outer {...}) and therefore, the whole section is highlighted.


As for the "Search Everywhere" action, please press the "Shift" key twice to see open the search window:

0

Please sign in to leave a comment.