Changes between Version 5 and Version 6 of Tutorials


Ignore:
Timestamp:
09/06/09 15:34:37 (5 years ago)
Author:
szabgab
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials

    v5 v6  
    11Temporary page for tutorial before they are added to the real web site 
    22 
    3 '''Getting Started with Padre on Windows''' 
    4  
    5     * Download Padre 0.41 from http://padre.perlide.org/download.html the name of the file to be saved on the desktop is called almost-six-0.41.msi (TODO have a clearer name of the package on the website) 
    6     * Run this installer by double clicking on the icon 
    7     * It will ask you to accept the terms and then press the Install button 
    8     * Once installation is finished you should be able to see the installed icons by pressing on "Start" then on "Programs" and then selecting "Padre Standalone Plus Six". 
    9     * The package you downloaded is the latest version packaged for Windows but there are newer version of Padre, you should now upgrade by doing the following:  (TODO: Padre, or the installation should have an icon that upgrads Padre) (Better yet, it should wrap a small wx application that shows a progressbar by default on which one can select to see details which would show the text as it is printed to the console that can be killed if the installations gets stuck.) 
    10  
    11 {{{ 
    12 perl -MCPAN -e "CPAN->upgrade('/^Padre/')" 
    13 }}} 
    14 This will open a black window. You'll see text printed in that window while Padre is being upgraded. The process will take 4-5 minutes or a lot more if your Internet connection is slow. 
    15     * Run Padre by clicking on "Start", selecting "Programs", selecting "Padre Standalone Plus Six" and clicking on "Padre". (there will be two windows, a black console and the editor itself) This is considered a bug and it will be fixed in a future version. (TODO eliminate black window) 
    16     * Close the Output window (Uncheck View/Show Output) (TODO set this the default) 
    17     * Select "Plugins", "Plugin Manager", you should see a list of plugins. Please make sure at least the the "Perl 6" plugin is enabled but it would be better to enable the "Padre Developer Tools" Plugin and the "Padre Popularity Contest" plugin as well. 
    18     * Select "Edit", "Preferences", "Run Parameters" and make sure "Use external window for execution" is checked. (TODO remove the word xterm) 
    19     * Click on "Files and Colors" (in older versions it was called "Mime-types") Select the Perl 6 as "File type" and select "STD.pm" as Highlighter. 
    20 Click on "Save" 
    21  
    22  
    23 Help for problem solving 
    24  
    25 run "Start", "Run", type in "cmd" and press enter. In the black window type  {{{ echo %PATH% }}} then type {{{ perl -V }}} 
    26  
    27 TODO ( support .plx files ?) 
    28  
    29 '''First Perl 5 Script: Hello world''' 
    30  
    31     * Click on "File" and the "New..." and "Perl 5 script" 
    32     * Type in your code {{{ print "Hello world\n"; }}} at the bottom of the file 
    33     * Save the file as hello.pl 
    34     * Click on "Run" 
    35     * A black window should be displayed and inside that window the text "Hello world". 
    36     * You should close the window by clicking on the [x] though it will disappear after 1000 secs. 
    37  
    38 '''First Perl 6 Script: Hello world''' 
    39  
    40     * Click on "File" and the "New..." and "Perl 6 script" 
    41     * Type in your code {{{ "Hello world".say; }}} at the bottom of the file 
    42     * Save the file as hello.p6 
    43     * Click on "Run" 
    44     * A black window should be displayed and inside that window the text "Hello world". 
    45     * You should close the window by clicking on the [x] though it will disappear after 1000 secs. 
    463 
    474'''Add a menu item to My Plugin'''