id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
761,Make cutoff size for PPI Experimental lexer user-configurable,misterwhipple,,"If a perl document exceeds a fixed size, Padre will fall back on the Scintilla syntax highlighter, disregarding the setting in Edit->Preferences->Files and Colors->Highlighter. This is by design, as the PPI highlighting can be slow with large documents. 

This caused me some confusion when I couldn't see any difference among the various highlighters' effects and didn't know why. It turned out to be because I was editing a ""large"" file. (The ''PPI Standard'' setting's Description says ""Big file will fall back to Scintilla highlighter"", but ''PPI Experimental'' does not mention this feature.)

The cutoff size is hard-coded at 4000 characters in Padre::Document::Perl.pm. I propose making the cutoff value a user preference. My rationale is that different computers will bear the extra load of PPI highlighting with varying degrees of grace, and users' perceptions of acceptable slow-down will also vary.

In the interim, a quick fix would be to tweak the Description text for the ''PPI Standard'' and ''PPI Experimental'' highlighters so that both of them mention the fallback feature, and so they explicitly state the hard-coded cutoff size, in place of the current phrase ""Big file"". (This text is defined in Padre::MimeTypes.pm.)

",enhancement,closed,minor,,editor,0.50,fixed,syntax highlighting preferences,
