M
madgetr
Guest
I stumbles upon some useful behavior of multi-line comments.
Normal Usage:
Easily Toggle Usage: Commenting out the closing comment tag allows you to quickly add a slash to the opening comment tag to help debug and without remembering where the closing tag belongs.
Extended Toggle Usage: Inserting a /*/ works as a pivot point, splitting a comment block into two sections with the top section commented and the bottom disabled. Adding an extra / to the opening comment tag inverts the behavior, activating the top block and deactivating the bottom.
Inverted:
Normal Usage:
PHP:
/*
Commented
*/
Not Commented
PHP:
/*
Commented
//*/
//*
Not Commented
//*/
PHP:
/*
Commented
/*/
Not_Commeneted
//*/
PHP:
//*
Not Commented
/*/
Commeneted
//*/
Last edited by a moderator: