NAME
RTF::VimColor - generate colorized RTF using Vim's syntax highlighting
VERSION
version 0.001
SYNOPSIS
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;
METHODS
rtf_for_file
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:
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)
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
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.