简体   繁体   English

xhtml页面的文档?

[英]Documentation for xhtml pages?

How can I write good documentation for xhtml jsf pages? 如何为xhtml jsf页面编写好的文档?

I might use <!-- comment --> , but that clutters the code very much, and makes it sometimes more unreadable than without comments. 我可能会使用<!-- comment --> comment- <!-- comment --> ,但是这会使代码非常混乱,有时甚至比没有注释时更难以理解。

Is there any way to do HTML comments or inline documentation better? 有什么方法可以更好地处理HTML注释或内联文档吗?

This may not be the answer you are looking for, but might be an alternative to massive html commenting. 这可能不是您要查找的答案,但可能是大量HTML注释的替代方法。

I found that it is much easier (and logical) to document the backing bean methods, than the xhtml itself. 我发现,记录后备bean方法比xhtml本身要容易得多(合乎逻辑)。 The only thing I use the html comment for is to identify large parts/areas on my page so its easier to find. 我使用html注释的唯一目的是识别页面上的较大部分/区域,以便更容易查找。

having readable and well named variables/logic is much better than any comment. 具有易读且命名合理的变量/逻辑比任何评论都好得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM