Sublime Forum

Scope highlighting

#1

I’m would like to have a slightly different background between Server code and HTML.
What I want is shown in the image below.
Its for rails, but I’d like to change both PHP and rails syntax to have a darker background than HTML.
How do I do that?

0 Likes

#2

The below works for me. Although I’m not sure if its correctly implemented.
I have no idea what source.php means but guessed that it should mean all PHP syntax?
Would appreciate some input if its correct or not.

<!-- php lighter background --> <dict> <key>name</key> <string>PHP</string> <key>scope</key> <string>source.php</string> <key>settings</key> <dict> <key>background</key> <string>#333333</string> </dict> </dict> <!-- end php lighter background -->

0 Likes