language-latex icon indicating copy to clipboard operation
language-latex copied to clipboard

highlight footnote text

Open sdaza opened this issue 9 years ago • 7 comments

Hello, Any ideas about how to highlight the text inside \footnote{}? Thanks!

sdaza avatar Nov 23 '16 16:11 sdaza

Texts inside \footnote{} is highlighted in default. 2017-08-07 21 23 34

What's the exact problem you are facing with?

yudai-nkt avatar Aug 07 '17 12:08 yudai-nkt

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.

sdaza avatar Aug 07 '17 12:08 sdaza

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.

yudai-nkt avatar Aug 07 '17 12:08 yudai-nkt

Thanks!

sdaza avatar Aug 07 '17 12:08 sdaza

@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 avatar Aug 14 '17 10:08 bendix3

@bendix3 great tip! It works perfectly!

sdaza avatar Aug 24 '17 12:08 sdaza

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.

Aerijo avatar Dec 18 '17 03:12 Aerijo