Sweet! Alex and M.P. many thanks to both of you. I used Alex's suggestion but also tried M.P's suggestion as it helps me find the scope when I don't know it. <br><br>Thanks again. I really appreciate it.<br><br>
<div class="gmail_quote">On Fri, Nov 7, 2008 at 10:24 AM,  <span dir="ltr"><<a href="mailto:mapcdi@mac.com">mapcdi@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Nov 7, 2008, at 12:49 PM, Want to Learn wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am using textmate for Latex. I was wondering if there is a way I could customize highlighting of document parts in Latex. For example, currently the footnotes are not highlighted, but any math input between two $ signs is highlighted in green. Suppose I want everything that appears between \footnote{ and } in gray color or add a background color. Is there a way to do that?<br>

<br>
Thanks very much for your help.<br>
</blockquote>
<br>
In your theme, add a rule for meta.footnote.latex.  Go to preferences, find the fonts & colors tab, click the "plus" sign to add a new rule.  set the scope selector to meta.footnote.latex.  Give the rule a name, and add a color.  That's it!<br>

<br>
—Alex<br>
</blockquote>
<br></div>
What I do to know the exact name of any scope in a given document in TextMate:<br>
(in the above case: meta.footnote.latex  AND support.function.footnote.latex)<br>
I use the 'Bundle Development' Bundle which has a Copy Scope command clickable in a menu item in:  Bundles > Bundle Development > Copy Scope,<br>
<br>
as follows:<br>
First place cursor in the middle of the desired word, here it was \footnote{};<br>
then ckick menu item 'Copy Scope';<br>
then paste it in the text;<br>
then copy the line of interest, here it's  'support.function.footnote.latex'   into the color prefs like previously stated by Alex;<br>
then do the same with the scope you get at  '{My footnote here}' ,  it was:    'meta.footnote.latex'.<br>
<br>
<br>
Probably there's a shorter way, but this is what I do and I can know about (and customize) every scope in a Latex doc, or any other type of doc for that matter.<br>
<br>
I wish the Latex Bundle could just add this simple Copy Scope command in its next update. It's just this:<br>
                        tr <<< "$TM_SCOPE" ' ' '\n'|pbcopy<br>
<br>
Best regards,<br>
M.P.<br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
<br></blockquote></div><br>