On 03/07/2006, at 6:38 PM, Allan Odgaard wrote:
Shouldn’t be necessary. Try post more context.
If you’re adding to the default HTML grammar, be sure to place the rule above the JS <script> rule.
Shouldn't I be adding it to the XML grammar? Apologies for not be clearer about that.
I am working with .wsc files which are XML declarations of simple COM objects which TextMate already recognises as XML.
.....
Actually, just worked out what is wrong. I moved it from the bottom of the list of declerations to the top and it works now :) I wasn't aware that order played a part (I know, RTFM).
I suspect now it has destroyed other declarations though.
I am working with this inside an XML document...
---
<script language="VBScript"> <![CDATA[
' VBScript here.
]]> </script>
---
What would be ideal is to treat everything inside '<script language="VBScript">\n<![CDATA[' and ']]>\n</script>' as 'source.vbscript'
Is there a way to match everything inside these tags excluding the tags themselves?
I do promise to package this up as a seperate WindowsScriptingComponents.tmbundle once I have the know how (not that I expect many to use it, but it can't hurt).
Thanks again,
LD.