On 24 Apr 2014, at 08:30 , Oliver Taylor <[email protected]> wrote:
> On 23 Apr 2014, at 3:15 PM, Lawrence San <[email protected]> wrote: > >> But if you then go back later and make a substantial edit to your >> hard-wrapped block comments, don't they turn into a mess? I've tried that, >> and ended up manually dragging numerous line fragments around to get it back >> into a reasonable block form, which seemed like more trouble than it's worth. > > BBEdit does this automatically. Try "Text > Hard Wrap..." on a messed-up > comment block. BBEdit can gracefully handle rewrapping comments if they are in BBEdit's preferred comment style for the language selected for a given document. I had a rather messy comment to clean up after having rewritten some comments in PHP code that were written as such: /* blah blah blah * blah blah blah * blah blah blah * blah blah blah */ BBEdit's preferred comment scheme for PHP appears to be this: // blah blah blah // blah blah blah // blah blah blah // blah blah blah In the latter format, if you modify the comment to be something like this: // blah blah blah // blah foobar qux fribble // blah blah blah // blah frob qux blurgle BBEdit will correctly rewrap to something like this: // blah blah blah // blah foobar // qux fribble // blah blah blah // blah frub qux // blurgle If the comments are in a non-preferred format you'll end up with something more like this: /* blah blah blah * blah foobar * qux fribble * blah blah blah * blah frub qux * blurgle */ Good luck, have fun =) Alex -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
