[TxMt] How can I make every file in a given (project) directory use shell script syntax highlighting

William Scott wgscott at chemistry.ucsc.edu
Mon Aug 14 01:55:04 UTC 2006


> TextMate only has syntax highlight for bash shell scripts, but I guess you’re 
> fine using that for your zsh stuff!?!
>

Yeah, it is pretty similar.  Besides, zsh and csh (but not tcsh!) are 
listed in the fileTypes array.

> If the files has no special extension or no first-line marker, the only way 
> to record that they are shell scripts is by putting the entire filename in 
> the fileTypes array.

I wound up doing that.  I was just wondering if there was anything I 
missed, being new to TextMate.

>
> You can find that if you select Edit Languages and locate the Shell Script 
> language grammar. You will see it already has the names of most of the (bash 
> specific) profiles.

Thanks.  It works. I put in all the standard zsh/bash/(t)csh rc and env 
files.

Bill



>


More information about the textmate mailing list