0

In emacs, the text quoted between `` and '' are highlighted as green. It comes in handy sometimes. I believe should be possible to also do it in latex. But I don't know how.

I checked the tex.vim in $RUNTIME/syntax folder. It appeared to me that the closest thing related to such quotes are texString, texStyleStatement, which are both highlighted by default. But in my file between the quotes are unhighlighted text. Were I mistaken? Is it something else that represents the quoted text? Or is it not defined in tex.vim?

0

In my custom VIM syntax file I have:

syntax region MyString start="'" end="'"
highlight link MyString String

Maybe that will work for you?

  • No, it didn't. I used syntax region DoubleQuote start="``" end="''", and linked DoubleQuote to String like you suggested. It stilll didn't highlight quotes. – Chong Feb 2 '16 at 8:15

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.