My coworkers have finally dragged me, kicking and screaming, out of vim and into TextMate.
And honestly, TextMate is great.
But one missing feature is driving me up the wall:
"slot-$name-$permid"
Shows up as a single color. There is no highlighting to call out the interpolated variables.
Some people bash this approach, but I think this is a very useful technique for composing things like HTML IDs and class names on the fly as long as you make responsible use of it, and with a bytecode cache there is no performance price for using it on the PHP side (if there ever was... it's really not that hard for PHP to parse a string literal).
Is there a way to enable this? Do I need a third-party bundle to do it? I've begun to poke around in the PHP bundle, and I see references to interpolation here and there, but it doesn't seem to do anything.
Thanks!
On Aug 17, 2009, at 1:25 PM, Tom Boutell wrote:
My coworkers have finally dragged me, kicking and screaming, out of vim and into TextMate.
And honestly, TextMate is great.
But one missing feature is driving me up the wall:
"slot-$name-$permid"
This is possible, if you switch to the Twilight theme it's already done. Basically the grammar is scoping these as unique items but not all themes color them. The scope you want to highlight would be:
string variable
Thanks, that works. I'm not sure how to add it to the Blackboard theme which my coworkers prefer (it is a very nice theme). I tried clicking the plus button to add a new item, calling it String Variable and typing string variable in the Scope Selector field, and it shows up in the list that way just like in Sunburst, but the color I set is not applied, it's still just like the rest of the double-quoted text.
On Mon, Aug 17, 2009 at 3:45 PM, Michael Sheetsmummer@whitefalls.org wrote:
On Aug 17, 2009, at 1:25 PM, Tom Boutell wrote:
My coworkers have finally dragged me, kicking and screaming, out of vim and into TextMate.
And honestly, TextMate is great.
But one missing feature is driving me up the wall:
"slot-$name-$permid"
This is possible, if you switch to the Twilight theme it's already done. Basically the grammar is scoping these as unique items but not all themes color them. The scope you want to highlight would be:
string variable
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Aug 17, 2009, at 1:55 PM, Tom Boutell wrote:
Thanks, that works. I'm not sure how to add it to the Blackboard theme which my coworkers prefer (it is a very nice theme). I tried clicking the plus button to add a new item, calling it String Variable and typing string variable in the Scope Selector field, and it shows up in the list that way just like in Sunburst, but the color I set is not applied, it's still just like the rest of the double-quoted text.
I just tested this and it Works For Me. :)
I grabbed a screenshot of what it looks like, maybe it'll help:
http://nknight.runawaynet.com/tmsv.png
If not, I'd try making sure you're running the latest version, though since you just started using TextMate, you probably are.
-NK