comment_parser icon indicating copy to clipboard operation
comment_parser copied to clipboard

PHP Support?

Open robsmallridge opened this issue 8 years ago • 4 comments

Hello,

Do you have any plans to support extracting comments from PHP files?

Many thanks Rob

robsmallridge avatar Jul 08 '16 09:07 robsmallridge

Hi Rob, I don't currently but I can add support in a few hours later tonight. I'll look into it and get back to you.

-JR On Fri, Jul 8, 2016 at 2:59 AM robsmallridge [email protected] wrote:

Hello,

Do you have any plans to support extracting comments from PHP files?

Many thanks Rob

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeanralphaviles/comment_parser/issues/1, or mute the thread https://github.com/notifications/unsubscribe/AFmoqvmk7x-CvJ4De2dF_TwEi8oRBY10ks5qTh-agaJpZM4JH48A .

jeanralphaviles avatar Jul 08 '16 19:07 jeanralphaviles

hi @robsmallridge I wrote a similar programme here](https://github.com/kelvintaywl/code_comment) which you can simply pip install code_comment, and it supports PHP if this is still an issue!

I mean no disrespect to the author of this repo! just wanted to highlight that i started creating a lib myself to make it easy to extend support for more languages.

kelvintaywl avatar Aug 21 '17 04:08 kelvintaywl

PHP comments are similar to C-style, except they also support # style commenting. Was your intention to support both?

geoffwhittington avatar Feb 28 '19 05:02 geoffwhittington

I just opened #31 for those still having this issue. While its true that comments are basically the same as in C, PHP has the tags and https://en.wikipedia.org/wiki/Here_document strings which need some pretty heavy regex.

LukasKaufmannRelaxdays avatar Jan 17 '21 22:01 LukasKaufmannRelaxdays