Block-style comments in BBEdit 10? (not a newbie, just really puzzled)

1,302 views
Skip to first unread message

Laura Gutman

unread,
Jul 24, 2013, 12:59:11 PM7/24/13
to bbe...@googlegroups.com
Is this something really obvious that I'm missing? I swear, BBEdit used to do this the way I expected, but no more.

When I choose the Un/Comment Text command (from the menu or by keyboard shortcut), if I have multiple lines of code selected, I would like a block-style comment applied/removed. What I get instead is a bunch of single-line comments. I'm using BBEdit to code JavaScript and PHP, and I have the problem in both places. I've checked the Language Options for both languages, and BBEdit clearly shows me that it knows how to write multi-line comment blocks for those languages. And I KNOW I didn't always have this problem. Is there a setting somewhere? Did something change? Thanks in advance for being kind if you tell me I'm just having a Homer Simpson moment (doh!). 

Oliver Taylor

unread,
Jul 24, 2013, 1:40:06 PM7/24/13
to bbe...@googlegroups.com
On Jul 24, 2013, at 9:59 AM, Laura Gutman <rocke...@gmail.com> wrote:

> When I choose the Un/Comment Text command (from the menu or by keyboard shortcut), if I have multiple lines of code selected, I would like a block-style comment applied/removed.


From the "Expert Preferences" section of BBEdit's Help:

> When using the Un/Comment command, BBEdit will use the line comment delimiter for the document's language whenever possible. If you would prefer to use block comments whenever possible:
>
> defaults write com.barebones.bbedit PreferLineCommentsWhenCommenting -bool NO
>
> When using the Un/Comment command, if nothing is selected, BBEdit will use the line comment delimiter to comment (or uncomment) the entire line. If you would prefer that BBEdit insert the line-comment delimiter at the insertion point instead:
>
> defaults write com.barebones.bbedit CommentWholeLineWithInsertionPoint -bool NO


Laura Gutman

unread,
Jul 25, 2013, 12:27:45 PM7/25/13
to bbe...@googlegroups.com
oooh thankyou thankyou thankyou ... seems obvious now, but I can't tell you how many hours I spent going through the BBEdit User Guide and never found anything like that. YAY!
Reply all
Reply to author
Forward
0 new messages