[TxMt] php // comments?

Quinn Comendant quinn at strangecode.com
Sat Feb 18 10:19:45 UTC 2006


I'm stumped again. I got > comments working for plain text documents
using this method, but now I want to set // type comments for all php
source. I've tried adding the following preferences to both PHP and HTML
bundles, using source.php as the selector:

/* preferences */
{
    shellVariables = (
        {   name = 'TM_COMMENT_START';
            value = '// ';
        },
        {   name = 'TM_COMMENT_END';
            value = '';
        },
        {   name = 'TM_COMMENT_MODE';
            value = 'line';
        },
    );
}

Doesn't work! I've tried with .php files set to both HTML and PHP
language types.

Idears?

Thanks again, Q


PS: Is it _always_ appropriate to use "HTML" as a file's language? I
noticed the "Source -> View source as HTML" command doesn't work unless
you select " X PHP -> Use HTML". 




More information about the textmate mailing list