Home Download Buy Blog Forum Support

Scope highlighting

Scope highlighting

Postby resting on Sat Nov 10, 2012 11:00 pm

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?

Image
resting
 
Posts: 14
Joined: Mon May 28, 2012 3:25 am

Re: Scope highlighting

Postby resting on Sat Nov 10, 2012 11:20 pm

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.

Code: Select all
       <!-- 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 -->
resting
 
Posts: 14
Joined: Mon May 28, 2012 3:25 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests