Home Download Buy Blog Forum Support

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

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

Postby ssteinerX on Sun Aug 07, 2011 2:16 pm

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
ssteinerX
 
Posts: 18
Joined: Tue May 03, 2011 2:50 pm

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

Postby adzenith on Sun Aug 07, 2011 5:10 pm

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.
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm

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

Postby ssteinerX on Sun Aug 07, 2011 5:52 pm

Thank you!

So many little things I don't know about Sublime...

Where did you find that?

Thanks,

S
ssteinerX
 
Posts: 18
Joined: Tue May 03, 2011 2:50 pm

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

Postby adzenith on Mon Aug 08, 2011 11:45 am

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 :P) to cmd+f your way through there.
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 11 guests

cron