Vim: turn on syntax highlighting of another type inside the syntax area?

I use latex to type a lot of code using the minted package. Basically the layout of my latex source is as follows:

 ... text ... \begin{cppcode} class GenericClass{ public: int publicMember; private: int privateMember; } \end{cppcode} ... text ... 

Is there anyway to tell Vim to highlight the code inside \begin{cppcode} \end{cppcode }, as if it's C++ code?

+6
source share
1 answer

yes you can - see this vim tip for details.

+5
source

Source: https://habr.com/ru/post/890146/


All Articles