[TxMt] New Language for Bundle

Chris Ruzin thatguy at chrisruzin.net
Thu Aug 25 17:06:08 UTC 2005


Thanks for the help, Allan. I tried adding in the include where you  
mentioned, but it doesn't work. The EE tags are highlighted and  
folded, but not the HTML.

Also, EE tags can be used in more than HTML. They can be used in XML,  
PHP, JavaScript, CSS and others. Will that mean I need to add all  
those other languages too, or will text.html.basic work for all of  
those?

I've also renamed the scope to "text.html.ee", like you suggested.

Thanks,
Chris

On Aug 25, 2005, at 2:06 AM, Allan Odgaard wrote:

> Since this is embedded in HTML (as I understand), you probably want  
> to name the scope something like “text.html.ee” -- that way, all  
> snippets/commands etc. which have their scope set to “text.html”  
> will also work when in EE files.
>
>
>>     fileTypes = ( "html", "htm", "php" );
>>     foldingStartMarker = "\\{(exp:([a-zA-Z0-9:]+)|if)\\b.*?\\}";
>>     foldingStopMarker = "\\{/(exp:([a-zA-Z0-9:]+)|if)\\}";
>>     patterns = (
>>         {   name = "constant.tag.ee";
>>             begin = "\\{/?([-a-zA-Z0-9_:]+)";
>>             end = "\\}";
>>             captures = { 1 = { name = "entity.name.tag.html"; }; };
>>             patterns = (
>>                 [...]
>>                 {   name = "string.single-quoted.ee";
>>                     begin = "'";
>>                     end = "'";
>>                 },
>>
>
> Here you add:
>
>                 {   include = "text.html.basic"; },
>
>
>>             );
>>         }
>>     );
>> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20050825/c017b9be/attachment.html>


More information about the textmate mailing list