![]() |
| Comment code |
|
Site Admin
|
It works this way by design.
If you need to commend a function that already has a few comments in it, please use multiline-coments /* */ |
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
|
That's not what I wanted to hear. This "solution" is so non-intuitive it's ridiculous. You're own comment command, uses // for comments, but you want all other comments to use /* */. And here's the real kicker. What if I commented out that first echo command uses the Ctrl+/ command. Then highlighted the entire function and again used the Ctrl+/ command? YOUR program is using the //. Aren't you almost saying your program should be using multi-line comments as well? Terrible answer. |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
Did you try Ctrl+Shift+/ shortcut that is assigned for block comment?
|
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
|
Block comments are even worse. PHP cannot handle embedded block comments. For example -
highlight the 2nd line and Ctrl+Shift+/
Well, and before we continue, that's just plain ugly, why isn't the */ at the end of the 2nd line? So anyways, we continue, and highlight all 3 lines and Ctrl+Shift+/
And bam, invalid PHP code :
If you refer to my original post, and implement the solution I propsed the results would be -
And everything would be just fine! |
||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||
|
Been over a week with no response....is the answer still no?
|
||||||||||||
|
|
|||||||||||||
|
Guru master
|
Seems they are taking a break @ NuSphere. Has been a while since Dmitri actually replied to any post here... (april 10th).
|
||||||||||||
|
|
|||||||||||||
|
I agree that code should look like
Personally I find it difficult to read code like
This is because when i'm scrolling down a block of code, i'm looking for a break in the comments // so I know where that block of comments ends
Do you mean comment out the whole block with multiline comments /* ... */ or just our comments in the block... Either way, Why should I have to use multiline comments when all I want to do is comment out a little line. When im doing database work, depending on whether or not im local to the database depends on which line I use
And like I said above, doing
would also be difficult to see where the commented out block begins and ends There is only one place I use multiline comments, and that is at the start of a file, as a header
What I find my self doing now is either adding/deleting the single line comments to the start of each line by hand, or cutting the code out, using a macro in TextPad to add/delete the // and then paste it back again Atleast this way, I can read the code and it actually gets commented out correctly |
||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||
|
I have to agree, the solution is not thought through. Also try to do this on an keyboard other than English, e.g. German. The / is accessed by SHIFT+7.... When I press CTRL+SHIFT+7 it set a marker (I think it is a marker!?).
Also I do not understand why the command is not visible on the context menu. AND BTW the Add or Remove Line Comment does NOT remove a line comment (it sets it , but does not remove it) at least in a HTML file And its 4 years after the first posting! |
||||||||||||
|
|
|||||||||||||
| Comment code |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed