The a2ps occam/occampi style sheets provide pretty printing of occam source code when using GNU a2ps. a2ps is found on most unix like systems and provides an easy way to print text files (such as source code) and provides syntax highlighting for many languages (now including occam!).
Installation Instructions:
- Download the occam.ssh and occampi.ssh files (links further down the page) and place them in ~/.a2ps.
- If you want automatic highlighting of occam files you will also need to put the sheets.map file in your ~/.a2ps directory. If you already have a sheets.map file in there, you will need to merge our file with your own: copy the last four lines from the sheets.map provided here into your own sheets.map.
- You can of course install these files into your site wide configuration directory for a2ps in order to provide occam syntax highlighting for all your users.
Usage Instructions:
-
If you installed the sheets.map file, you just point a2ps at one or more occam files:
a2ps *.occ.
-
If you did not install the sheets.map file, or want to be particular about which style sheet is used (ie because the file does not end in .occ or .inc) use:
a2ps -Eoccampi myfile.occam.
-
You may need other options to select a particular printer, or for printing duplex, ie:
a2ps *.occ -Asheet -Eoccam -stumble -MA4 -Pmyprinter.
Files:
| occam.ssh | The occam (2.1) style sheet, used for pretty printing occam source code using a2ps. |
| occampi.ssh | The occam-pi style sheet. Requires that the occam style sheet (occam.ssh) is also installed. |
| sheets.map | a2ps style sheet map file, for automatically syntax highlighting *.occ and *.inc files. |