Changes between Version 11 and Version 12 of PadrePluginCookbook02


Ignore:
Timestamp:
07/16/11 11:24:46 (3 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PadrePluginCookbook02

    v11 v12  
    710710* Read POD for Cookbook02.pm and Main.pm 
    711711* Run Tests, note results, //critiques welcome.  
    712 === output 
    713 * To use Padre Output window, to talk to our users, or we could just **say** to terminal :) 
     712=== sub boilerplate 
     713To use Padre internal features 
     714{{{#!perl 
     715sub set_name_label_value { 
     716        my $self   = shift; 
     717        my $main   = $self->main; 
     718}}} 
     719=== Config 
     720To use Padre Configuration variables, first we need some more boilerplate. 
     721{{{#!perl 
     722my $config = $main->config; 
     723}}} 
     724Then we can read the contets 
     725{{{#!perl 
     726$config->identity_nickname 
     727}}} 
     728You may ask how did I know which $config to call, just look in Tools->Preferences->Advanced. 
     729=== Output 
     730To use Padre Output window, to talk to our users, or we could just **say** to terminal :) 
    714731 
    715732 1. Open Padre Output window: