[TxMt] Different background color for comments

Jarkko Laine jarkko at jlaine.net
Wed Nov 17 11:52:17 UTC 2004


On 17.11.2004, at 13:34, Ivar Åsell wrote:
>
>>    patterns = (
>>      /* comments */
>>      { name = "Comment"; begin = "/\\*"; end = "\\*/"; 
>> foregroundColor = "#FF00FF"; backgroundColor = "#FFFFDC"; },
>
> begin="/\\*"  - What does the first forwardslash do??

It's part of the start "tag", i.e. /* starts a comment and */ ends it. 
The backslashes are doubled probably because the text goes through two 
different regexp parsers.

HTH,
Jarkko

--
Jarkko Laine
http://jlaine.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20041117/26040513/attachment.p7s>


More information about the textmate mailing list