You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good question! Any language that supports /** */-style comments (including Java and C++) is supported using the --polyglot option.
That said, the intent of this 'polyglot' mode is pretty particular: it's mostly for documenting node.js addons, that you write in C++ but that interact with JavaScript types. documentation has assumptions, like globals-docs that it's dealing with JavaScript types. Given that there's no popularly-accepted PHP-Node.js interlink, this usecase doesn't really fit that well.
So, yes, JSDoc comments in non JavaScript languages are supported. As far as broader language support and support for, say, C++ code that isn't intended for usage with JavaScript - that's currently out of scope for documentation.js. If someone really wanted to adopt that feature and spend the necessary time to implement and maintain it, I'd be open to that possibility. But as it is, increasing the scope of documentation.js to fit that usecase would overextend my own resources and knowledge.
can it be modified to support php & java too.
both of them are very very similar to js.
i think it can easily be modified to support both of them too.
The text was updated successfully, but these errors were encountered: