Sublime Forum

<?php -- whole file is "selected background", how to fix?

#1

I’m using:

"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",

My Python code looks great with a nice dark background; no problem.

My PHP code is all within some kind of selection that makes the background a light, washed-out black/grey that’s really hard on the eyes.

What would that selection type be called so I can edit it in the theme and how do I modify it so that it doesn’t wreck anything else?

NOTE: if I remove the opening <?php, the the background goes back to the correct black., but I lose all syntax hilighting.

Thanks,

S

0 Likes

#2

Press cmd+option+p and the status bar should show you the name of the current scope. You can then look for that in your theme and see whether anything has a background color.

0 Likes

#3

Thank you!

So many little things I don’t know about Sublime…

Where did you find that?

Thanks,

S

0 Likes

#4

I don’t really know… I’ve been using Sublime Text for about two years now, I guess, so it’s just tricks of the trade.
All the keybindings are in the Default Keybindings file, though, and it can be helpful in some cases (probably not this one, though :stuck_out_tongue:) to cmd+f your way through there.

0 Likes