Changeset 5283
- Timestamp:
- 06/17/09 23:15:26 (3 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Document.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Document.pm
r5128 r5283 66 66 in that GUI instead of the mime-type only. 67 67 68 I wonder if we should allow the users (and or plugin authors) to 69 change the functions or to add new functions that will map 70 file content to mime-type or if we should just tell them to 71 patch Padre. What if they need it for some internal project? 72 68 73 A plugin is able to add new supported mime-types. Padre should 69 74 either check for collisions if a plugin already wants to provide 70 75 an already suported mime-type or should allow multiple support 71 modules with a way to select the current one. 76 modules with a way to select the current one. (Again I think we 77 probably don't need this. People can just come and add the 78 mime-types to Padre core.) 72 79 73 80 Each mime-type is mapped to one or more lexers that provide … … 340 347 } 341 348 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 346 349 # Try derive the mime type from the file extension 347 350 if ( $filename and $filename =~ /\.([^.]+)$/ ) { … … 403 406 404 407 # 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... 405 411 sub is_perl6 { 406 412 my ($text) = @_;
Note: See TracChangeset
for help on using the changeset viewer.
