Changeset 2289


Ignore:
Timestamp:
12/30/08 11:11:23 (3 years ago)
Author:
szabgab
Message:

add size limit to ppi highlighting

Location:
trunk/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Config.pm

    r2214 r2289  
    4444    editor_tabwidth               => 8, 
    4545    editor_indentwidth            => 4, 
     46     
     47    ppi_highlight                 => 0, 
     48    ppi_highlight_limit           => 10_000, 
    4649 
    4750    # When running a script from the application some of the files might have not been saved yet. 
  • trunk/Padre/lib/Padre/Document/Perl.pm

    r2276 r2289  
    8686    my $self = shift; 
    8787    my $config = Padre->ide->config; 
    88     if ( $config->{ppi_highlight} ) { 
     88 
     89    if ( $config->{ppi_highlight} and $self->editor->GetTextLength < $config->{ppi_highlight_limit} ) { 
    8990        return Wx::wxSTC_LEX_CONTAINER; 
    9091    } else { 
  • trunk/Padre/t/02-new.t

    r2214 r2289  
    5454        editor_use_tabs               => 1, 
    5555        editor_perl5_beginner         => 1, 
     56 
     57        ppi_highlight                 => 0, 
     58        ppi_highlight_limit           => 10_000, 
    5659 
    5760        search_terms       => [], 
Note: See TracChangeset for help on using the changeset viewer.