language-latex
language-latex copied to clipboard
highlight footnote text
Hello,
Any ideas about how to highlight the text inside \footnote{}?
Thanks!
Texts inside \footnote{} is highlighted in default.

What's the exact problem you are facing with?
On my text, I just want to distinguish between regular text from footnote text. It would good be nice if the text of footnotes has another color, or it is highlighted in some way.
Uh, I understand. I'll consider adding this feature, but unfortunately it's unlikely to happen because I guess there is no appropriate attributes in TextMate to distinguish those two.
Thanks!
@sdaza what works for me is adding
atom-text-editor.editor .syntax--meta.syntax--footnote.syntax--latex{ color: goldenrod }
to Atom's styles.less file. You can color all kinds of things that way.
@bendix3 great tip! It works perfectly!
Perhaps footnotes can get the scope markup.other.footnote.latex? The TextMate rules are vague, but the Sublime Text 3 page for it suggests this scope for footnotes. I think it would make sense at least.