[英]phpdocumentor2 Showing Source Code?
I'm having a hard time finding out a nice clean way to generate docs. 我很难找到一种干净的生成文档的方法。 PHPdoc still seems a little scattered.
PHPdoc似乎仍然有些分散。
In any case, I can't seem to get it to generate source code with highlighting , which I seem to have a compulsive need for - being a stack overflow user :D 无论如何,我似乎都无法通过高亮显示来生成源代码 ,我似乎有强制性的需要-成为堆栈溢出用户:D
Here's the command I'm running: 这是我正在运行的命令:
phpdoc project:run --directory /var/www/symbiostock/wp-content/themes/symbiostock/ --target /var/www/PhpDocumentor-output/ --template responsive --sourcecode --force
Without the --force
parameter, it tells me I have too many arguments. 没有
--force
参数,它告诉我参数太多。 With it, it just rolls through everything without any apparent generating of highlighted source code. 有了它,它可以滚动浏览所有内容,而不会明显生成突出显示的源代码。
Is this template sensitive? 这个模板敏感吗? Only some templates do source inclusion?
仅包含源代码的某些模板?
I find documentation on phpdocumentor slightly deficient in a few areas (ironically) so I thought I might just post the question. 我发现phpdocumentor上的文档在某些方面略有不足(具有讽刺意味的是),所以我想我可能只是发布这个问题。
I don't think that 2.x has implemented the --sourcecode option yet. 我认为2.x尚未实现--sourcecode选项。 It's available in 1.x, but 1.x does not handle new features added in PHP 5.3 and beyond.
它在1.x中可用,但是1.x无法处理PHP 5.3及更高版本中添加的新功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.