Tablet devices such as the iPad can emulate that "paper view" with the added benefits of richer formatting, no paper consumption and colorization.
enscript2dropbox is a command line utility that offers this capability by reading in your source code and generating either HTML or pdf output which can be viewed on your tablet using a Dropbox client app.
The implementation of enscript2dropbox is a Python script which serves as a wrapper largely around the enscript utility.
Given the files foo.m and foo.h, run the following command to "print" them to Dropbox:
$ enscript2dropbox foo.m foo.hThe files
foo.m.html and foo.h.html will be placed in the directory
$HOME/Dropbox/Documents/printouts where $HOME is your home directory.
To generate pdf files instead use the -w pdf option:
$ enscript2dropbox -w pdf foo.m foo.h
enscript2dropbox supports OS X versions ≥10.5 and most Linux systems.
enscriptpstopdf or ps2pdfenscript and pstopdf are installed by default on OS X.
Depending on your installation of enscript, a number of languages are supported for highlighting. The following list shows those supported on OS X 10.6. Please refer to the command enscript --help-highlight to determine which languages are supported on your system.
ada, asm, awk, bash, c, changelog, cpp, csh, delphi, diff, diffs, diffu, elisp, fortran, fortran_pp, haskell, html, idl, inf, java, javascript, ksh, m4, mail, makefile, matlab, nroff, objc, outline, pascal, perl, postscript, pyrex, python, rfc, scheme, sh, skill, sql, states, synopsys, tcl, tcsh, tex, vba, verilog, vhdl, vrml, wmlscript, zsh
enscript and ps2pdf are installed.enscript2dropbox.make to install.Apache License, Version 2.0
Charles Choi (charles.choi@yummymelon.com)
Please submit any bugs or feature requests to the enscript2dropbox issue tracker.
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/kickingvegas/enscript2dropbox