[TxMt] Command-/ (Comments) not working

Charilaos Skiadas cskiadas at uchicago.edu
Fri Feb 24 01:26:58 UTC 2006


On Feb 23, 2006, at 7:12 PM, Oscar Bonilla wrote:
>
> I tried Unix Shell and Tcl... I see that it works in Ruby & Perl.  
> How do I fix it for Shell & Tcl?

For me it works fine for the Unix Shell. In general, you want to have  
in your grammar a preferences file (called Miscellaneous in most  
bundles) that has things like this in it:

	shellVariables = (
		{	name = 'TM_COMMENT_START';
			value = '# ';
		},
		{	name = 'TM_COMMENT_END';
			value = '';
		},
		{	name = 'TM_COMMENT_MODE';
			value = 'line';
		},
	);

Currently there is no such file for Tcl. But there is one for Unix  
Shell, at least in my case.

The comment command is actually in the source bundle, so you can read  
its code and see what it does there.

Haris





More information about the textmate mailing list