shdoc icon indicating copy to clipboard operation
shdoc copied to clipboard

Feature Request: Add @license keyword

Open JonTheNiceGuy opened this issue 4 years ago • 2 comments

It would be useful to have a file-level @license keyword, e.g. @license MIT or @license [WTFPL](LICENSE.md)

JonTheNiceGuy avatar Jul 16 '21 08:07 JonTheNiceGuy

This is an interesting idea, but I'm not sure how useful this is, as license parsers already determine the license from comments. I personally wouldn't want to add a feature that is already replaceable with an existing thing

hyperupcall avatar Apr 09 '22 01:04 hyperupcall

I'd appreciate this feature as well - if only to reduce the number of parsers needed for a file and secondly so I hardly need to think which language I'm writing documentation for (as I'm from a PHP background I tend to use PHPDoc which does support @license - but both PHPDoc and SHDoc seem to be JavaDoc inspired which - admittedly - doesn't appear to support it)

rbairwell avatar Jul 27 '22 14:07 rbairwell