我使用latex和minted包来排版很多代码。我的Latex源代码的布局主要是这样的:
... text ...
\begin{cppcode}
class GenericClass{
public:
int publicMember;
private:
int privateMember;
}
\end{cppcode}
... text ...有没有什么方法可以告诉Vim突出显示\begin{cppcode} \end{cppcode中的代码,就好像它是C++代码一样?
发布于 2011-06-09 22:46:33
是的,你可以--详情请看this vim tip。
https://stackoverflow.com/questions/6293931
复制相似问题