Changes between Version 3 and Version 4 of Features/SyntaxChecking


Ignore:
Timestamp:
Mar 31, 2011, 7:03:38 PM (3 years ago)
Author:
szabgab
Comment:

text from Padre.pm

Legend:

Unmodified
Added
Removed
Modified
  • Features/SyntaxChecking

    v3 v4  
    1 == Description == 
     1= Syntax checking = 
     2 
     3Depending on a corresponding support in the respective '''Padre::Document::Language''' class, Padre supports real time syntax checking capabilities. 
     4 
     5Syntax errors or warnings are displayed in a side bar (usually at the bottom of the Padre window). By double-clicking a list entry you can navigate to the position in the file. 
     6 
     7Additionally, there is a symbol column on the left side of the editor where colored symbols mark the code lines with problems. 
     8 
     9== WARNING NOTE == 
     10 
     11Syntax checking for Perl5 documents comes bundled with Padre. It is implemented using '''perl -c'''. This means that parts of the code actually get executed (e.g. '''BEGIN''' blocks). Malicious software might used this fact to damage your system  
     12{{{ 
     13BEGIN {  
     14   system('rm -rf ~') 
     15} 
     16}}} 
     17or suck up your resources  
     18{{{ 
     19BEGIN {  
     20   while(1) { }  
     21} 
     22}}} 
     23 
     24Syntax checking is currently disabled by default and has to be enabled manually after every start of Padre. This somewhat increases security when doing '''padre some_unknown_file.pl'''. 
     25However, it does not protect you when you open a file from within Padre while syntax checking is turned on. 
     26The most secure solution would require a really fast non-executing syntax checker which unfortunately is currently not available. 
     27 
     28 
    229 
    330   * Syntax checking for Perl 5 and Perl 6