[TxMt] Re: stdin | mate --type

Michael Sheets mummer at whitefalls.org
Sun Nov 15 00:21:35 UTC 2015


> On Nov 14, 2015, at 6:03 PM, Quinn Comendant <quinn at strangecode.com> wrote:
> 
> This doesn't work for me: `echo "<?php die(); ?>" | mate --type php`. TM2 opens with the type set to Plain Text. Is possible? I'm doing it wrong?

You need to give the full root scope of the grammar, so:

echo "<?php die(); ?>" | mate --type "text.html.php"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151114/641effe8/attachment.html>


More information about the textmate mailing list