Summary: | tools->comment functionality broken for cpp files | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Holger Schröder <holger-kde> |
Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.5.4 | |
Sentry Crash Report: |
Description
Holger Schröder
2005-03-23 21:56:17 UTC
That feature is a function of the embedded editor (in this case, Katepart). Try it in Kate/KWrite - Do you see the same behaviour? yes, kate shows the same behaviour, so this bug should be assigned to kate, right ? Holger On Thursday 24 March 2005 13:10, Jens Dagerbo wrote: [bugs.kde.org quoted mail] In c++, the text /** * bla */ *is* a comment, so kate silently ignores the request to make it one. Why on earth is that a bug?? well, when you want to comment a block of code, which contains some "normal" c or c++ comments, like if ( i < 0 ) { // return here return; /* some other comment */ } you can simply mark the whole block and comment it out by pressing ctrl-d. we use this quite often when editing cpp files in kate/kdevelop. it is quite confusing, that this does not work, when doxygen comments are included in the code that you want to comment out. i think this is a bug or at least a missing functionality. It does not work if you try to comment a doxygen comment and nothing else. Whereas you can comment a multiline cpp comment and nothing else. I agree that that is silly and should be fixed. Dominik: anotherusage for isCommentAttrib() ;) SVN commit 1193691 by pletourn: Don't use the attribute of the end since the end will be commented BUG:102316 M +4 -9 katedocument.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1193691 SVN commit 1193692 by pletourn: Don't use the attribute of the end since the end will be commented BUG:102316 M +4 -9 katedocument.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1193692 |