<blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">text-ed wrote:</div>
<div class="quote-message">
I am trying to make sense of the rules/language grammar in textmate. What language is it?
Any help would be greatly appreciated.
</div>
</div></blockquote>


I tried comprehending that a while ago.. still cant comprehend it.
Guess Its only for high funda programmers.</br>
Butttt.... with some trial and error came up with this..,</br>

Try this</br></br>

1. Create a language and name it something like MyCSV</br>
2. Then edit the language so that it has these changes</br></br>

<font color="#25466c" size="3px"><pre>
{       scopeName = '<font color="red">text.html.csv</font>';</br>
        fileTypes = ( );</br>
        foldingStartMarker = '/\*\*|\{\s*$';</br>
        foldingStopMarker = '\*\*/|^\s*\}';</br>
        patterns = (</br>
                {       name = 'keyword.control.untitled';</br>
                        match = '<font color="red">^.+,</font>';</br>
                },</br>
                {       name = 'string.quoted.double.untitled';</br>
                        begin = '"';</br>
                        end = '"';</br>
                        patterns = (</br>
                                {       name = 'constant.character.escape.untitled';</br>
                                        match = '<font color="red">".+$\n</font>';</br>
                                },</br>
                        );</br>
                },</br>
        );</br>
}</br></br></br></font></pre>

3. Set the language association of the CSV file opened in TM to "MyCSV"</br>
4. Value 1 will be Blue and value 2 will be Green.</br></br>

I dont know if thats the way to do it, but sure it will work !</br>

HTH
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/Trying-to-figure-how-to-color-code-a-text-file-tp25088183p25099824.html">Re: Trying to figure how to color code a text file</a><br>
Sent from the <a href="http://www.nabble.com/textmate-users-f18157.html">textmate users mailing list archive</a> at Nabble.com.<br>