Alexandr Ciornii > Padre-Plugin-Kate > Padre::Plugin::Kate

Download:
Padre-Plugin-Kate-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source   Latest Release: Padre-Plugin-Kate-0.06

NAME ^

Padre::Plugin::Kate - Using the Kate syntax highlighter

SYNOPSIS ^

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.

LIMITATION ^

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 ^

Copyright 2009 Gabor Szabo. http://szabgab.com/

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.

syntax highlighting: