Kwiki::VimMode - VimMode preformatted forms of text
$ cpan Kwiki::VimMode $ cd /path/to/kwiki $ echo "Kwiki::VimMode" >> plugins $ kwiki -update
This module allows you to hilight the syntax of any text mode that the Vim editor recognizes:
Here's some *HTML* and *Perl* for you to grok: .vim <html> <head> <title>Highlighted stuff!</title> </head> <body> <em>Check</em> <strong>this</strong> <code>out!</code> </body> </html> .vim .vim #!/usr/bin/perl # sample perl $name = 'Kwiki'; print "Check out $name!\n"; .vim
Text::VimColor/Vim should hopefully pick up the correct syntax automatically. If it doesn't, precede your text in the .vim block with filetype: name, where name is a valid Vim syntax name. For example:
.vim
filetype: name
name
.vim filetype: apache <VirtualHost> ServerName www.me.org # ... </VirtualHost> .vim
It doesn't work on Mac OS X! Check out https://rt.cpan.org/NoAuth/Bug.html?id=7316
Ian Langworth <ian@cpan.org>
Kwiki, Text::VimColor
Copyright (C) 2004 by Ian Langworth
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Kwiki::VimMode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kwiki::VimMode
CPAN shell
perl -MCPAN -e shell install Kwiki::VimMode
For more information on module installation, please visit the detailed CPAN module installation guide.