I use latex to typeset lots of code using the minted
package. Mainly the layout of my Latex source looks like this:
... 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 the \begin{cppcode}
\end{cppcode
} as if it C++
code?
yes you can - please see this vim tip for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With