Changeset 5283


Ignore:
Timestamp:
06/17/09 23:15:26 (3 years ago)
Author:
szabgab
Message:

move around some documentation

File:
1 edited

Legend:

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

    r5128 r5283  
    6666in that GUI instead of the mime-type only. 
    6767 
     68I wonder if we should allow the users (and or plugin authors) to 
     69change the functions or to add new functions that will map 
     70file content to mime-type or if we should just tell them to  
     71patch Padre. What if they need it for some internal project? 
     72 
    6873A plugin is able to add new supported mime-types. Padre should 
    6974either check for collisions if a plugin already wants to provide 
    7075an already suported mime-type or should allow multiple support 
    71 modules with a way to select the current one. 
     76modules with a way to select the current one. (Again I think we 
     77probably don't need this. People can just come and add the  
     78mime-types to Padre core.) 
    7279 
    7380Each mime-type is mapped to one or more lexers that provide  
     
    340347    } 
    341348 
    342     # Perl 6:   use v6; class ..., module ... 
    343     # maybe also grammar ... 
    344     # but make sure that is real code and not just a comment or doc in some perl 5 code... 
    345  
    346349    # Try derive the mime type from the file extension 
    347350    if ( $filename and $filename =~ /\.([^.]+)$/ ) { 
     
    403406 
    404407# naive sub to decide if a piece of code is Perl 6 or Perl 5. 
     408# Perl 6:   use v6; class ..., module ... 
     409# maybe also grammar ... 
     410# but make sure that is real code and not just a comment or doc in some perl 5 code... 
    405411sub is_perl6 { 
    406412    my ($text) = @_; 
Note: See TracChangeset for help on using the changeset viewer.