views:

23

answers:

2

Hi,

is it possible to display a certain string in Textmate in a custom color?

Lets say I want to display the string "myCoolFunction()" always in yellow so I can see better where I use the function in my documents.

A: 

No, there aren't any syntax selectors for specific functions.

mipadi
A: 

Actually it was possible. I modified the language pack. I am working with JavaScript so I edited the JavaScript language pack in TextMate. You have to create a new scope selector with a simple regex. After that you can create a new color rule in the settings and there you have it.

Elias