Highlighter engine doesn't seem updated (for example, defined-or is not yet interpreted correctly by this module but already correctly by Kate itself). Does not provide default theme (must specify all colors). Seem to be very slow (takes 1.5s for a 18K Perl .pm file while Pygments only takes 0.2s).
Great module. I've been wanting to add syntax highlighting support to my blog software, but didn't want to require the end user to have vim installed. This module works much better (and faster) than Text::VimColor, and supports many more languages. The only disadvantage is that there's no reasonable default color scheme, you have to build it all yourself. Small price to pay for a great highlighting engine, though. Highly recommended.
Nice. But there is a performance problem. Kate.pm loads all sub modules at once and this decreases performance and increases exec time. We can not use individual modules (::Perl.pm) for highlighting, since the highlightText() method is inside Kate.pm
I think that all methods must be moved inside another module (like Syntax::Highlight::Engine::Kate::Base) and all sub modules must inherit from this. And Syntax::Highlight::Engine::Kate must be just remain as a wrapper. Here is a little benchmark I did:
use Time::HiRes qw(time);
my $bench = time;
printf "Bench: %4f\n", time - $bench;
my $bench2 = time;
printf "Bench: %4f\n", time - $bench2;
Great job! I might even throw away my own perl hilighter.
1 hidden unhelpful review