Take your source code and convert them into a beautifully formatted PDF. Features include PDF bookmarks and a bunch of textmate themes to choose from.
CodeRippa takes your source code and turns it into a beautiful PDF file. Currently, it supports 150 languages and 84 themes, all of which are available in TextMate.
You will definitely need a TeX distribution installed. To check, simply type pdflatex
.
In case your system doesn’t have pdflatex
, you should install a LaTeX distribution.
$ gem install code_rippa
Usage: code_rippa [options] file_or_directory
-l, --list-themes List all available themes
-t, --theme THEME Selected theme
-n, --list-syntax List all available syntax
-h, --help Display this screen
Many of the themes found in CodeRippa can be found here
$ code_rippa -l
active4d
all_hallows_eve
amy
made_of_code
twilight
zenburnesque
... more themes omitted
Example:
Without theme specified (defaults to: made_of_code):
$ code_rippa path_to_single_file.rb
With theme specified:
$ code_rippa -t zenburnesque path_to_single_file.rb
Note that the output file is saved as out.pdf in the current directory where code_rippa was called from.
Example:
Without theme specified (defaults to: made_of_code):
$ code_rippa path_to_directory
With theme specified:
$ code_rippa -t rubyblue path_to_directory
Note that the output file is saved as out.pdf in the current directory where code_rippa was called from.
None of this would be possible without the awesome ultraviolet spox-ultraviolet and language_sniffer gems. Props to lwheng for providing most of the LaTeX help.
Currently this gem is in its infancy. Any bug reports and feature requests are very welcomed.
psych
syck
completely for psych