+
Skip to content

fisherro/cpp2rtf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

I liked the way code was typeset in Bjarne Stroustrup's THE C++ PROGRAMMING
LANGUAGE third edition. Essentially, identifiers were set in a proportional-
width typeface while other characters remained in a monospace typeface. I
wanted to imitate this style in a document I was writing. So, I wrote this
program to convert C++ code into an RTF document in this style.
(RTF was the most convenient choice for the task at hand.)

This is actually the third version of this code. It has gone through one
refactoring, and this version uses C++11 features.

Additional features:

- All text in comments or string literals is set in the proportional font.
- Recognized keywords are set in bold rather than italic.
- Preprocessor directives are set like keywords.

About

Typeset C++ code like TC++PL 3rd edition outputting it as RTF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载