RTF::VimColor - generate colorized RTF using Vim's syntax highlighting
version 0.001
Achtung! You probably want to just use the synrtf command included with this distribution. If not, though...
my $rtf_textref = RTF::VimColor->new->rtf_for_file( $filename, { filetype => 'forth' }, ); print $$rtf_textref;
my $rtf_textref = RTF::VimColor->new->rtf_for_file($filename, \%arg);
Given the name of a file, this method will return a reference to a string of RTF.
Valid arguments for %arg are:
%arg
colorscheme - a path to a Vim colorscheme file (default is manxome.vim) filetype - the Vim filetype to use for syntax highlighting (default: guess) font_face - the font face to use; defaults to Courier New font_size - the font size, in points, to use; defaults to 14 default_bg - default background color ("#ab01ef" or a name) default_fg - default foreground color (same format)
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2015 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install RTF::VimColor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RTF::VimColor
CPAN shell
perl -MCPAN -e shell install RTF::VimColor
For more information on module installation, please visit the detailed CPAN module installation guide.