btwael/mammouth

Why don't compiler keep the comments?

Opened this issue · 3 comments

In coffeescript/javascript there is a browser/internet issues but in php dont. I think is better to keep the comments because in a team if someone don't knows mammouth and want understand code or do changes directly in php file this guy will not get confused.

Maybe breaklines could be keeped too.

A good example: I'm refactoring my wp plugin and I need to keep the comments to WordPress reconize plugin attributes.

I’d love this feature for block comments, as in CoffeeScript:
http://stackoverflow.com/a/9724433

Agreeing with webarthur -- for debugging the generated PHP, it would be really nice to have Mammouth command line options to keep comments and keep whitespace. Of course, these would not be used for generating files for production. Thanks.