-
-
20 Feb 2015 23:58:24 UTC
- Distribution: RTF-VimColor
- Module version: 0.001
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (519 / 0 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (16.94KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
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.
Module Install Instructions
To install RTF::VimColor, copy and paste the appropriate command in to your terminal.
cpanm RTF::VimColor
perl -MCPAN -e shell install RTF::VimColor
For more information on module installation, please visit the detailed CPAN module installation guide.