开发者

How to add comments in PHP Eclipse?

开发者 https://www.devze.com 2023-03-08 17:50 出处:网络
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 c

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

精彩评论

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