<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><div style="font-family: times, serif; font-size: 12pt; "><span>Hello,</span></div><div style="font-family: times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: times, serif; font-size: 12pt; "><span>Thanks for the replay. I figured it out. By using this:</span></div><div style="font-family: times, serif; font-size: 12pt; "><span><br></span></div><div><span><div>{<span class="yiv1808146803Apple-tab-span" style="white-space: pre; ">   </span>name = 'variable.ksp';</div><div><span class="yiv1808146803Apple-tab-span" style="white-space: pre; ">                       </span>match = '(\$)[a-z_]\w*';</div><div><span class="yiv1808146803Apple-tab-span" style="white-space: pre; ">             </span>},</div><div>{<span class="yiv1808146803Apple-tab-span" style="white-space: pre; ">
        </span>name = 'entity.ksp';</div><div><span class="yiv1808146803Apple-tab-span" style="white-space: pre; ">                 </span>match = '(\%)[a-zA-Z_]\w*';</div><div><br></div></span>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.<span><div><br></div><div><br></div><div>Is there a way to do that? How can I change the scope for only the symbols($ or %)  and not the words after?</div><div><br></div><div>Thanks for your time and answer.</div><div><br></div><div>Best,</div><div>John</div><div><br></div><div><br></div></span></div></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family:
 'times new roman', 'new york', times, serif; ">This will get you started...<br><a href="http://manual.macromates.com/en/scope_selectors" target="_blank">http://manual.macromates.com/en/scope_selectors</a><br><br>Adam Merrifield<br>seydoggy.com<br><br>820 Strasburg rd, Kitchener,<br>Ontario, N2E 2Y3, Canada<br><br>Email: <a ymailto="mailto:info@seydoggy.com" href="mailto:info@seydoggy.com">info@seydoggy.com</a><br>Office: 519-489-6033<br>Cell: 519-574-9788<br><br>On 2011-08-01, at 20:57, Walter Lee Davis <<a ymailto="mailto:waltd@wdstudio.com" href="mailto:waltd@wdstudio.com">waltd@wdstudio.com</a>> wrote:<br><br>> 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.<br>> <br>> Walter<br>> <br>> On Aug 1, 2011, at 4:59 PM, John Relosa wrote:<br>> <br>>>
 Hello,<br>>> 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??<br>>> Thank you in<br>>> advance.<br>>> <br>>> Best<br>>> John<br>>> ----------------------------------------------------<br>>> I've seen some bundles do that but I can't figure out the way to accomplish this.<br>>> <br>>> In the language that I am working on I have variables and arrays etc...<br>>> 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?<br>>> <br>>> Something like<br>>> <br>>> declare $variable<br>>> declare %array[]<br>>> <br>>> so every time these variables appear in the script they would be a certain(assignable) color
 and a different color for the %array?.<br>>> <br>>> Thank you.<br>>> <br>>> Best,<br>>> John<br>>> <br>>> _______________________________________________<br>>> textmate mailing list<br>>> <a ymailto="mailto:textmate@lists.macromates.com" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>>> <a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>> <br>> <br>> _______________________________________________<br>> textmate mailing list<br>> <a ymailto="mailto:textmate@lists.macromates.com" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>> <a href="http://lists.macromates.com/listinfo/textmate"
 target="_blank">http://lists.macromates.com/listinfo/textmate</a><br><br><br>------------------------------<br><br>_______________________________________________<br>textmate mailing list<br><a ymailto="mailto:textmate@lists.macromates.com" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br><br>End of textmate Digest, Vol 39, Issue 2<br>***************************************<br><br><br></div></div></div></body></html>