Steven Haryantohttp://cpanratings.perl.org/dist/Syntax-Highlight-Engine-Kate#10540
Rating: 1 stars
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).
Steven HaryantoJonathan Rockwayhttp://cpanratings.perl.org/dist/Syntax-Highlight-Engine-Kate#2678
Rating: 5 stars
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.Jonathan RockwayBurak GÃ¼rsoyhttp://cpanratings.perl.org/dist/Syntax-Highlight-Engine-Kate#2234
Rating: 4 stars
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:
#!/usr/bin/perl -w
use strict;
use Time::HiRes qw(time);
my $bench = time;
require Syntax::Highlight::Engine::Kate::Perl;
import Syntax::Highlight::Engine::Kate::Perl;
printf "Bench: %4f\n", time - $bench;
my $bench2 = time;
require Syntax::Highlight::Engine::Kate;
import Syntax::Highlight::Engine::Kate;
printf "Bench: %4f\n", time - $bench2;
Output:
Bench: 0.039220
Bench: 0.507489Burak GÃ¼rsoyنديم الخميرhttp://cpanratings.perl.org/dist/Syntax-Highlight-Engine-Kate#2233
Rating: 5 stars
Great job! I might even throw away my own perl hilighter.نديم الخمير