开发者

How to add comments in PHP Eclipse?

How can I add comments in PHP eclipse? I'm trying by selecting few lines of code, then right click, On menu, "Source" and then I have tried all these options t开发者_运维百科here "general element comment", "toggle comment", "Add block comment". None of them works. PS. I just downloaded latest eclipse PHP version.


Try Ctrl+Shift+/

The question is similair to How to comment a block in Eclipse?


Why don't you just try adding /** + enter? It will produce something like

/**
 * Comment here
 */

Remember to follow the doc order

/**
 * Description
 * @param argument/parameter
 * @return
 */


It`s a bug in latest PHP eclipse. Fix is here.


I was using single line comments on my eclipse php project. When i uploaded it to server ,some obfuscation has been applied automatically.Hence all the line breaks are removed and it treating the whole program as a single line. so i am getting an END OF STATEMENT error on server.So its better to use /--/ instead of //---- while commenting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜