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
Given the files
foo.h, run the following command to "print" them to Dropbox:
$ enscript2dropbox foo.m foo.hThe files
foo.h.htmlwill be placed in the directory
$HOMEis 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.
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.
Apache License, Version 2.0
Charles Choi (email@example.com)
Please submit any bugs or feature requests to the enscript2dropbox issue tracker.
You can also clone the project with Git by running:
$ git clone git://github.com/kickingvegas/enscript2dropbox