Home Comments

Printing Slice files with a2ps

Andreas SchererAndreas Scherer Member Andreas SchererOrganization: Private Linux SiteProject: Evaluating Ice-C++, Ice-Python, Ice-Ruby ✭✭
Greetings,

If you want to pretty-print Slice files with a2ps (http://www.gnu.org/software/a2ps/), you can add the attached file slice.ssh to the style-sheet collection (in /usr/share/a2ps/sheets) and make an entry in sheets.map like
# ZeroC Ice Specification Language
slice: /*.ice/

This initial version prints all Slice keywords from appendix A in bold and formats comments and strings as in C/C++.

Cheers,
Andreas
Sign In or Register to comment.