Skip to main content

Display and Print Source Codes

One can use either "a2ps" or "trueprint" to print source codes. Today, I am going to experiment with "trueprint". A decent source code printing program should have the following requirements:
  1. Indentation is done correctly.
  2. Smart Spacing to avoid leaving out one-two lines of codes in previous page.
  3. Be able to convert to pdf or ps
  4. Be able to print two pages on one side
The following are several examples of using the "trueprint" function:

bash >> trueprint --portrait --language=cxx --intelligent-line-wrap --four-up --page-break-after-function --no-cover-sheet --output=EMMUtil_cpp.ps EMMUtil.cpp
bash >> ps2pdf EMMUtil_cpp.ps EMMUtil_cpp.pdf
bash >> rm EMMUtil_cpp.ps

Please read the man page for further explanations.

good day !!!

Comments

Popular posts from this blog