note 71151 added to language.basic-syntax.comments
| From: | DaveW at osu1 dot php dot net | Date: | Tue, 14 Nov 2006 06:07:16 +0000 |
| Subject: | note 71151 added to language.basic-syntax.comments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119706@lists.php.net to get a copy of this message | ||
Re:
//*
This code is easy to turn into a comment.
// */
I have been using this trick in my C++ and Java code for some time, but I use a slight variation, as
follows:
//*/
This code is easy to turn into a comment.
//*/
You can write a single macro for the editor of your choice, to drop in a //*/ line of text. Such a
line is completely inoccuous, other than bloating the code, until and unless the initial slash
('/') is deleted. By taking advantage of the fact that the same line can act to start or
end a toggled block, or be totally ignored, you can drop these lines into your code anywhere at
anytime, without worrying or knowing which text sequence - starting or ending - you need.
Dave
----
Server IP: 66.207.199.35
Probable Submitter: 24.79.54.161
----
Manual Page -- http://www.php.net/manual/en/language.basic-syntax.comments.php
Edit -- https://master.php.net/note/edit/71151
Del: integrated -- https://master.php.net/note/delete/71151/integrated
Del: useless -- https://master.php.net/note/delete/71151/useless
Del: bad code -- https://master.php.net/note/delete/71151/bad+code
Del: spam -- https://master.php.net/note/delete/71151/spam
Del: non-english -- https://master.php.net/note/delete/71151/non-english
Del: in docs -- https://master.php.net/note/delete/71151/in+docs
Del: other reasons-- https://master.php.net/note/delete/71151
Reject -- https://master.php.net/note/reject/71151
Search -- https://master.php.net/manage/user-notes.php