That was an example he gave :) Worked great... I have a Preferences item in my bundle which contains that text, and on the bottom, it says Scope = "source.mushcode". And my language defines its scope to be source.mushcode, so... I just took off the quotes, and woila...
On 9/21/05, Gerd Knops gerti@bitart.com wrote:
On Wed, Sep 21, at 12:41 PM, Allan Odgaard wrote:
Yes -- go to the bundle editor, for your language bundle add a new preferences item (using the + button) and insert:
smartTypingPairs = ( ( "(", ")" ), ( "{", "}" ), ( "[", "]" ), ( """, """ ), ( "`", "`" ), );
That gives you type-pairing for the normal characters except " and '. Set the scope for this preferences item to source.«your language».
Typing pairs can also be set for more specific scopes, e.g. ' is already removed from strings and comments in sources (and text, but present inside <tags> in HTML).
Could I have an example of this?
Gerd ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate