Summary: | kdevelop uses the wrong comment marks for PHP files | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Marco Krohn <marco.krohn> |
Component: | Language Support: PHP | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Marco Krohn
2004-02-28 01:22:20 UTC
How do you come to think, that there should be "#"-style comments in a PHP file? I cannot remember PHP to recognize this as a comment. If we can clearify this issue then i'd like to decrease severity to wishlist, because: a) in a pure php file, there is no <!-- comment -->-style comment b) it would require a rewrite of most of the phpsupport code. On Saturday 28 February 2004 02:34, Sascha Cunz wrote: > How do you come to think, that there should be "#"-style comments in a PHP > file? I cannot remember PHP to recognize this as a comment. Ups, not? I started learning PHP yesterday. I only knew that it was the wrong comment mark in the html file and start looking for how a comment in php works. AFAIK wikipedia (wikipedia.org) uses php therefore I looked into their source code and found things like: # Static factory methods # function newFromDBkey( $key ) { $t = new Title(); $t->mDbkeyform = $key; if( $t->secureAndSplit() ) making me believe that "#" is the right comment "tag". Looking in the php documentation I found that C/C++ style comments are the right thing--sorry, my mistake. BTW thanks again for the support in kdevelop it really made the start a whole lot easier :-) > If we can clearify this issue then i'd like to decrease severity to > wishlist, because: a) in a pure php file, there is no <!-- comment > -->-style comment > b) it would require a rewrite of most of the phpsupport code. makes sense to me. Thanks. Can someone explain why this BR is open? Did we forget to close it, or is there still a problem here that I don't understand? (Not unlikely, given my zero knowledge of PHP.) PHP can use c comments: /* */ c++ comments: // add bash like comments: # But as far as I know c/c++ comments are the way to go. Closing. |