[Bug 76329] kdevelop uses the wrong comment marks for PHP files

Marco Krohn marco.krohn at gmx.de
Sat Feb 28 10:39:03 UTC 2004

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From marco.krohn gmx de  2004-02-28 10:37 -------
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.

More information about the KDevelop-devel mailing list