Changeset 848
- Timestamp:
- 11/09/08 04:09:11 (3 years ago)
- Location:
- trunk/lib/Padre
- Files:
-
- 3 edited
-
Document.pm (modified) (1 diff)
-
Wx/MainWindow.pm (modified) (2 diffs)
-
Wx/Menu.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Padre/Document.pm
r847 r848 167 167 my $self = bless { @_ }, $class; 168 168 169 if (Padre->ide->config->{ppi_highlight}) {170 $MIME_LEXER{'application/x-perl'} = wxSTC_LEX_CONTAINER;171 }172 173 169 # Check and derive params 174 170 unless ( $self->editor ) { -
trunk/lib/Padre/Wx/MainWindow.pm
r847 r848 17 17 use Padre::Wx::ToolBar (); 18 18 use Padre::Wx::Output (); 19 use Padre::Document (); 19 20 use Padre::Documents (); 20 21 … … 1343 1344 my $config = Padre->ide->config; 1344 1345 $config->{ppi_highlight} = $event->IsChecked ? 1 : 0; 1345 1346 $Padre::Document::MIME_LEXER{'application/x-perl'} = 1347 $config->{ppi_highlight} ? Wx::wxSTC_LEX_CONTAINER : Wx::wxSTC_LEX_PERL; 1348 1349 foreach my $editor ( $self->pages ) { 1350 #my $editor = $self->selected_editor; 1351 next if not $editor->{Document}->isa('Padre::Document::Perl'); 1352 if ($config->{ppi_highlight}) { 1353 $editor->{Document}->colourise; 1354 } else { 1355 $editor->{Document}->remove_color; 1356 $editor->Colourise(0, $editor->GetLength); 1357 } 1358 } 1359 1346 1360 return; 1347 1361 } -
trunk/lib/Padre/Wx/Menu.pm
r832 r848 515 515 ); 516 516 $menu->{experimental_ppi_highlight}->Check( $config->{ppi_highlight} ? 1 : 0 ); 517 $Padre::Document::MIME_LEXER{'application/x-perl'} = 518 $config->{ppi_highlight} ? Wx::wxSTC_LEX_CONTAINER : Wx::wxSTC_LEX_PERL; 519 517 520 } 518 521
Note: See TracChangeset
for help on using the changeset viewer.
