perl-File-Comments - Recognizes file formats and extracts format-specific comments

Edit Package perl-File-Comments

File::Comments guesses the type of a given file, determines the format used for comments, extracts all comments, and returns them as a reference to an array of chunks. Alternatively, it strips all comments from a file.

Currently supported are Perl scripts, C/C++ programs, Java, makefiles, JavaScript, Python and PHP.

The plugin architecture used by File::Comments makes it easy to add new formats. To support a new format, a new plugin module has to be installed. No modifications to the File::Comments codebase are necessary, new plugins will be picked up automatically.

File::Comments can also be used to simply guess a file's type. It it
somewhat more flexible than File::MMagic and File::Type. File types in File::Comments are typically based on file name suffixes (*.c, *.pl, etc.). If no suffix is available, or a given suffix is ambiguous (e.g. if several plugins have registered a handler for the same suffix), then the file's content is used to narrow down the possibilities and arrive at a decision.

Refresh
Refresh
Source Files (show unmerged sources)
Filename Size Changed
File-Comments-0.08.tar.gz 0000014746 14.4 KB
cpanspec.yml 0000000660 660 Bytes
perl-File-Comments.changes 0000000377 377 Bytes
perl-File-Comments.spec 0000003573 3.49 KB
Latest Revision
buildservice-autocommit accepted request 844660 from Dirk Stoecker's avatar Dirk Stoecker (dstoecker) (revision 8)
baserev update by copy to link target
Comments 0
openSUSE Build Service is sponsored by