开发者

Vim: enable syntax highlight of different type inside a syntax region?

开发者 https://www.devze.com 2023-03-12 05:33 出处:网络
I use latex to types开发者_如何学Cet lots of code using the minted package. Mainly the layout of my Latex source looks like this:

I use latex to types开发者_如何学Cet 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消