Padre::Plugin::Kate - Using the Kate syntax highlighter
This plugin provides an interface to the Syntax::Highligh::Engine::Kate which implements syntax highlighting rules taken from the Kate editor.
Currently the plugin only implements Perl 5 and PHP highlighting.
Once this plug-in is installed the user can switch the highlilghting of all Perl 5 or PHP files to use this highlighter via the Preferences menu of Padre.
This is a first attempt to integrate this syntax highlighter with Padre and thus many things don't work well. Especially, due to speed issues, currently if you set the highlighting to use the Kate plugin, Padre will do so only for small files. The hard-coded limit is in the Padre::Document::Perl class (which probably is a bug in itself) which probably means it will only limit Perl files and not PHP files.
There are several ways to improve the situation e.g.
Highlight in the background
Only highlight the currently visible text
Only highlight a few lines around the the last changed character.
Each one has its own advantage and disadvantage. More research is needed.
Copyright 2009 Gabor Szabo. http://szabgab.com/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
To install Padre::Plugin::Kate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre::Plugin::Kate
CPAN shell
perl -MCPAN -e shell install Padre::Plugin::Kate
For more information on module installation, please visit the detailed CPAN module installation guide.