<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Sorry, I thought you didn't want CF commands to be highlighted.. you could replace "--" with "(--|---)" for comment.block.html. Example:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>{<SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>name = 'comment.block.html';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>begin = '<!(--|---)';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>end = '(--|---)\s*>';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>patterns = ( </DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>{<SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>name = 'invalid.illegal.bad-comments-or-CDATA.html';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>match = '(--|---)';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>}</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>);</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>}</DIV><DIV><BR class="khtml-block-placeholder"><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Richard</DIV><DIV><BR><DIV><DIV>On 10 Jul 2006, at 17:35, Josh wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">I just tried your suggestion an it didn't seem to work. Forgive my lack of TextMate knowledge but can I just add something like an "OR" somewhere so that -- and --- would be valid matches?</SPAN></BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>