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.
Thank you
On 22/12/2005, at 5:17 PM, 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.
Some themes (Preferences:Fonts & Colors: ) color php code with a distinctive back ground. But string parameters in html and strings in php are not distinguished.
To get that happening, you'd have to change the name of the regular expression that defines strings in one or other language bundle (php or html) and then attach it to a new or different style element.
But having the php and html distinguished might be what you want? strings should look like strings no matter where, i'd guess.
tim
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