<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I'm trying (for the first time ever) to make Textmate do syntax-highlighting. The files I want to highlight are JUNOS router configuration files. My beginning grammar is<DIV><BR class="khtml-block-placeholder"></DIV><DIV>{<SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>scopeName = 'source.junos';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>fileTypes = ( 'junos' );</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>foldingStartMarker = '\{\s*$';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>foldingStopMarker = '^\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 = 'keyword.other.junos';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>match = 'groups|system|chassis|interfaces|forwarding-options|snmp|routing-options|protocols|policy-options|firewall|routing-instances';</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>},</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>{<SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN>name = 'comment.block.junos';</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>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV>When I set the language to JUNOS, folding works but the keywords or comments stay the default color. Do I need to do something else to see color highlighting? (assume nothing is too dumb - I'm a newbie to this)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Assuming I get this working, is there a repository of grammars where I can share it? And maybe find grammars for other odd languages?</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 14px; 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; "><DIV>-- Pete</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>