Version: 4.0 beta 9 (using KDE 4.4.2) OS: Linux Installed from: openSUSE RPMs Using Kate editor component. The comment function (ctrl+D) fails to make a multi-line comment in a php file with mixed php/html. In the original file, there were several html & php lines outside of php tags. I wanted to comment them out in php, as opposed to in html, so they would ever get output to the browser. I surround the html in question with php tags, and then highlighted the html lines I wanted to comment out. Pressing the comment shortcut (ctrl-d) did not comment them out. ctrl-d will properly create a single-line comment on the current line (using //), or the currently selected line (using /* ... */). The expected behavior is for kdevelop to comment multiple lines, using the multi-line comment syntax for the outer-most block, php in this case. I note that this issue also exists in kwrite3, so this is seemingly not a regression. I will attach an original source file, as well as a unified diff simulating the expecting comment behavior.
Created attachment 42467 [details] The original php file
Created attachment 42468 [details] A diff showing the expected results of using the comment function Thanks!
SVN commit 1193975 by pletourn: Fix commenting empty lines BUG:233210 M +12 -23 document/katedocument.cpp M +5 -0 syntax/katehighlight.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1193975
SVN commit 1193979 by pletourn: Fix commenting empty lines BUG:233210 M +12 -23 document/katedocument.cpp M +5 -0 syntax/katehighlight.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1193979