I recently played with phpDocumentor and found it quite suitable for my needs. I mainly work with PHP / HTML / JS / CSS code bases and would like phpDocumentor to parse my Javascript (and possibly CSS) to keep it all together.
I managed to get phpdoc to parse the javascript files contained in the codebase, but it rejects the dock block at page level, which causes it to reject various tags (see below). I found that by adding PHP to the open tag (with the JavaScript comment in front of it) at the beginning of the JavaScript file, I can get it to parse it just like a PHP file.
// <?php function javascript(goes, here) { }
I can think about the problem that arises if the web server is configured on the server .js files through PHP. Are there any other issues you might think about? Is there a better way to do this?
thanks
source share