Hello,

Thanks for the replay. I figured it out. By using this:

{ name = 'variable.ksp';
match = '(\$)[a-z_]\w*';
},
{ name = 'entity.ksp';
match = '(\%)[a-zA-Z_]\w*';

it works well but is there a way that I could have the $ and % a different color? Currently when I change the color in the theme for the variable and entity it changes the color of the whole word including the variable and array symbols ($ and %). It would be nice if I could have different colors for those as signifiers of what they are in the code.


Is there a way to do that? How can I change the scope for only the symbols($ or %)  and not the words after?

Thanks for your time and answer.

Best,
John


This will get you started...
http://manual.macromates.com/en/scope_selectors

Adam Merrifield
seydoggy.com

820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada

Email: info@seydoggy.com
Office: 519-489-6033
Cell: 519-574-9788

On 2011-08-01, at 20:57, Walter Lee Davis <waltd@wdstudio.com> wrote:

> The PHP bundle does the first of these, you might want to look at that for insight. Im not sure how you would do the second one, but you may spot a different construct in there that would help you figure this out.
>
> Walter
>
> On Aug 1, 2011, at 4:59 PM, John Relosa wrote:
>
>> Hello,
>> I post this question a while back but had no answer... Is it one of those RTFM question or did it slip through the cracks? Can someone point me to the right direction if so on how to accomplish such t a thing??
>> Thank you in
>> advance.
>>
>> Best
>> John
>> ----------------------------------------------------
>> I've seen some bundles do that but I can't figure out the way to accomplish this.
>>
>> In the language that I am working on I have variables and arrays etc...
>> Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front?
>>
>> Something like
>>
>> declare $variable
>> declare %array[]
>>
>> so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?.
>>
>> Thank you.
>>
>> Best,
>> John
>>
>> _______________________________________________
>> textmate mailing list
>> textmate@lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate@lists.macromates.com
> http://lists.macromates.com/listinfo/textmate


------------------------------

_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate

End of textmate Digest, Vol 39, Issue 2
***************************************