简体   繁体   中英

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. I'm using the most recent Doxygen and I set SOURCE_BROWSER to true, GENERATE_RTF to true, and RTF_SOURCE_CODE to 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. How can I get it to provide C++ syntax highlighting in its RTF output?

Indeed although stated in the documentation / Doxyfile the syntax highlighting was not implemented in 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.

2018/06/10: The push request has been integrated in the master version on github.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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