If you don't wish tackle the customization yourself then you might find a theme, such as Tomorrow, that already includes some embedded-php highlighting.
Otherwise, you might modify (copy and save etc.) your current theme to include rules such as the following:
- Code: Select all
<key>name</key>
<string>Embedded begin (PHP)</string>
<key>scope</key>
<string>text.html.basic source.php.embedded.block.html punctuation.section.embedded.begin.php</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#FF0000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Embedded end (PHP)</string>
<key>scope</key>
<string>text.html.basic source.php.embedded.block.html punctuation.section.embedded.end.php</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#FF0000</string>
</dict>
</dict>
Use
Ctrl-Alt-Shift-P to discover the current scope for particular text that you wish to colour - it appears in the statusbar - or install the
ScopeHunter package.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.