简体   繁体   English

Doxygen中的RTF语法突出显示

[英]RTF syntax highlighting in Doxygen

I'm trying to create an RTF file to use in MS word of all the C++ files in my Visual Studio project. 我正在尝试创建一个RTF文件,以在Visual Studio项目中的所有C ++文件的MS Word中使用。 I'm using the most recent Doxygen and I set SOURCE_BROWSER to true, GENERATE_RTF to true, and RTF_SOURCE_CODE to true. 我正在使用最新的Doxygen,并将SOURCE_BROWSER设置为true,GENERATE_RTF设置为true,RTF_SOURCE_CODE设置为true。

It says it will provide source code with syntax highlighting, but it just pastes all the code in Courier New font without any form of styling whatsoever. 它说它将为源代码提供语法突出显示功能,但是它只是将所有代码粘贴为Courier New字体,而没有任何形式的样式。 How can I get it to provide C++ syntax highlighting in its RTF output? 我如何才能在其RTF输出中提供C ++语法突出显示?

Indeed although stated in the documentation / Doxyfile the syntax highlighting was not implemented in doxygen. 确实,尽管在文档/ Doxyfile中进行了说明,但语法突出显示并没有在doxygen中实现。

I've just pushed a proposed patch to github (pull request 741, https://github.com/doxygen/doxygen/pull/741 ) that implements the syntax highlighting for RTF. 我刚刚将一个建议的补丁推送到github(拉请求741, https://github.com/doxygen/doxygen/pull/741 ),该补丁实现了RTF的语法高亮显示。

2018/06/10: The push request has been integrated in the master version on github. 2018/06/10:推送请求已集成到github的主版本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM