Re: Comment a block
Re: Comment a block
- Subject: Re: Comment a block
- From: Ken Thomases <email@hidden>
- Date: Thu, 2 Sep 2010 17:13:45 -0500
On Sep 2, 2010, at 4:23 PM, David Blanton wrote:
> When editing a .h file that contains a cpp class definition and an obj-c class definition if I select a block of code in the cpp class and press cmd-/ only the fisrt line of the selecyed blok is commented with //.
>
> If I select a block of code in the obj-c class and press cmd-/ all lines in the selected block are commented with //.
>
> Can someone explain to me, like I am a Windows programmer, why this happens? Or better how do I get the obj-c comment behavior in the cpp class?
You can view the script used to perform the (un)commenting. Scripts menu > Edit User Scripts > Comments > Un/Comment Selection.
Other than differentiating between scripting languages and C-based languages based on the very beginning of the file, it is not sensitive to or aware of the language of the code.
I suspect you have mixed line breaks in the file such that the script perceives the C++ class as being all on one line.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden