[TxMt] Windows Script Components

Luke Daley luke at code4days.com
Mon Jul 3 08:31:16 UTC 2006


On 03/07/2006, at 6:07 PM, Allan Odgaard wrote:

> If you have given your vbscript grammar a scope name of  
> source.vbscript, you would need a rule similar to this in the HTML  
> grammar:
>
>    {  name = 'source.embedded.vbscript';
>       begin = '<script language="VBScript">';
>       end = '</script>';
>       patterns = (
>          { include = 'source.vbscript'; },
>       );
>    },
>
> Then when it sees the <script language="VBScript"> tag, it will  
> include your vbscript grammar and not exit this mode before it sees  
> </script>.

Thanks for the help Allan. I can't seem to get it to work though,  
does something in the begin or end labels need to be escaped?

LD.



More information about the textmate mailing list