Sublime Forum

Changing color php tag of theme

#1

Hi everyone, I am using theme Cobalt. Currently my interface have colors same as:

http://nr4.upanh.com/b1.s32.d2/c908c3d5d4a811955bcdffa73c7e4ecb_49597254.h1.png

I see open tag php and end tag php have default color white. I search color code FFFFFF in file theme and try to change that parameters but I can’t change color of two tag pairs. I want to convert it to orange or red color … Any idea? Thanks!

0 Likes

#2

Add this to your theme file:

<dict>
    <key>name</key>
    <string>PHP Tags</string>
    <key>scope</key>
    <string>punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php</string>
    <key>settings</key>
    <dict>
        <key>foreground</key>
        <string>#f80000</string>
    </dict>
</dict>
1 Like

#3

Well, I copied your snippet to file scheme but it doesn’t have any changing about color. Anyway, thanks so much. :smile:

My file scheme
http://www.mediafire.com/?5ftiwidd0b0xmyd

0 Likes

#4

You should put it inside the tags.

0 Likes

#5

EXAMPLE: In the Monokai Theme You can change it like this:

    {
                "name": "PHP Tags",
                "scope": "punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php",
                "foreground": "#f80000"
            }
0 Likes

#6

Excellent code. thanks for share

0 Likes