[TxMt] how to use unIndentedLinePattern?

Quinn Comendant quinn at strangecode.com
Wed Mar 29 22:41:51 UTC 2006


I'm trying to disable auto-indentation for the lines below starting 
with 'case'. This is how I'd like the code to appear:

    switch ($where) {
    case 'start' :
        # code...
        break;
    default :
    case 'middle' :
        # code...
        break;    
    case 'end' :
        # code...
        break;    
    }

However, by default, the php bundle wants to format it like this:

    switch ($where) {
        case 'start' :
        # code...
        break;
        default :
        case 'middle' :
        # code...
        break;    
        case 'end' :
        # code...
        break;    
    }


I've added this preference item to the php bundle for source.php, but
it's not working:

/* preferences */
{
    unIndentedLinePattern = '^\s*case\s+.*$';
}

Am I doing this right?

Thanks,
Q




More information about the textmate mailing list