Re(2): [TxMt] trouble adding comment pattern
Charilaos Skiadas
cskiadas at uchicago.edu
Fri Feb 17 22:14:31 UTC 2006
On Feb 17, 2006, at 3:59 PM, Quinn Comendant wrote:
>>
>
> It still doesn't work for me. I edit in the bundle editor, click test
> (no errors), close bundle editor, open new .txt file, try commenting a
> line and I get a # instead of a >. Here is the first few lines of my
> Text -> Plain Text language bundle (the grey dot with the L):
>
Ah that is a different question. I thought you wanted lines starting
with > to be considered comments, and the above would do that. The
comment/uncomment command is a command in the source bundle, and it
uses the values of the scope specific variables TM_COMMENT_START and
friends for setting the proper behavior. Take a look at the
"Miscellaneous" preference file in the LaTeX bundle for example to
get an idea. It has the following:
shellVariables = (
{ name = 'TM_COMMENT_START';
value = '%';
},
{ name = 'TM_COMMENT_END';
value = '';
},
{ name = 'TM_COMMENT_MODE';
value = 'line';
},
);
You can look at other bundles too. you'd probably just want to add
something like this to a new preference item in the text bundle, with
scope text.plain
> Thanks, Quinn
Haris
More information about the textmate
mailing list