NAME
Text::EmacsColor - syntax-highlight code snippets with Emacs
SYNOPSIS
my $colorer = Text::EmacsColor->new;
my $html = $colorer->format(
'my $foo = 42', # code
'cperl', # the emacs mode to use (cperl, lisp, haskell, ...)
);
By default, emacs will exec in --batch mode. If you want to use emacsclient or pass other options to emacs, specify the emacs_command initarg:
my $colorer = Text::EmacsColor->new( emacs_command => 'emacsclient --eval' );
TODO
docs, split returned CSS and HTML into easily-usable data-structures, auto-detect running emacs and use it
REPOSITORY
$ git clone git://git.jrock.us/Text-EmacsColor
SEE ALSO
Emacs' highlighting is way better, but this is where I got the name from.
AUTHOR
Jonathan Rockway <jrockway@cpan.org>
COPYRIGHT
Copyright 2008 Jonathan Rockway
This module is Free Software, you may redistribute it under the same terms as Perl itself.