[TxMt] Scoping snippets for XML

Trevor Harmon trevor at vocaro.com
Wed Apr 5 00:42:49 UTC 2006


On Mar 29, 2006, at 11:01 AM, Charilaos Skiadas wrote:

> On Mar 29, 2006, at 2:58 AM, Trevor Harmon wrote:
>
>> The thought of all that redundancy bothers me; perhaps there's  
>> some way of "subclassing" the XML language type? Or is there an  
>> entirely different way to handle this kind of thing?
>
> It's called:
> 	include='text.xml';
> just create a new language with this in its patterns, that should  
> do it, I think. You could even override some of the scopes to get  
> finer results, if desired.

Interesting; that works, but only if I put it in the XML bundle. If I  
try to put the QEL language definition into its own bundle, then  
TextMate starts thinking all XML files are QEL files. (Is this a bug  
or a feature?)

Also, include='text.xml' only seems to work for the patterns field. I  
find that I have to cut-and-paste the XML definitions of  
folding*Marker, firstLineMatch_disabled, and repository into the QEL  
language definition, instead of just including them. Or am I missing  
something? Thanks,

Trevor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060404/8021edba/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060404/8021edba/attachment.p7s>


More information about the textmate mailing list