[TxMt] Stringless Bundles

Jeroen van der Ham jeroen at je-ju.net
Wed Sep 21 21:01:29 UTC 2005


On 21-09-2005 19:53, Gerd Knops wrote:
>>     smartTypingPairs = (
>>         ( "(", ")" ),
>>         ( "{", "}" ),
>>         ( "[", "]" ),
>>         ( "“", "”" ),
>>         ( "`", "`" ),
>>     );
>>
>> 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?

- Open a HTML document and enter a string.
- Place caret inside said string and hit shift-ctrl-P, this shows the 
scope for that string
- Goto Preference settings (ctrl-opt-cmd-L and select preferences)
- Add new preference, copy code from above and adapt if necessary
- Add the scope from what you found in step 2

Voila, now you have a autocompletion setting that is only used inside 
HTML strings.

Jeroen.

-- 
             <http://www.je-ju.net/~jeroen/blog/>



More information about the textmate mailing list