[TxMt] Different background color for comments

Jeroen jeroen at je-ju.net
Wed Nov 17 11:54:25 UTC 2004


On 17-11-2004 12:34, Ivar Åsell wrote:
>>    patterns = (
>>      /* comments */
>>      { name = "Comment"; begin = "/\\*"; end = "\\*/"; foregroundColor 
>> = "#FF00FF"; backgroundColor = "#FFFFDC"; },
> 
> 
> begin="/\\*"  - What does the first forwardslash do?? The first 
> backslash only escapes the following one?

This matches "/*". For some reason everything in plist files has to be 
escaped twice, so that's why you need two \'s before the *.

Jeroen.



More information about the textmate mailing list