[TxMt] coloring different for PHP string and HTML string

Allan Odgaard throw-away-1 at macromates.com
Thu Dec 22 19:01:14 UTC 2005


On 22/12/2005, at 18:17, lahdyfreekindah @hotmail.com wrote:

> Hello, I am new to TM and was wondering if there was a way to color  
> strings in PHP one color and strings/values in HTML a different color.

You'll need to create a new item in your theme [1] with a scope  
selector [2] of “text.html source.php string” or similar and style that.

[1] http://macromates.com/textmate/manual/themes.html#themes
[2] http://macromates.com/textmate/manual/ 
scope_selectors.html#descendant_selectors




More information about the textmate mailing list