Author: Ram Rachum

Description: Create "comment braces" with a title around a piece of code.

For example, if you have this code:

    do_something()
    do_something_else()
    meow = frr + 7
    do_something_again()

You can select it, then run the comment-braces script with a title of "doing inane stuff", to get this:

    ### Doing inane stuff: ####################################################
    #                                                                         #
    do_something()
    do_something_else()
    meow = frr + 7
    do_something_again()
    #                                                                         #
    ### Finished doing inane stuff. ###########################################

(Don't try this inside a docstring, it works only in real code.)

The title usually has a first word ending with "ing". Don't bother capitalizing the first letter or ending the sentence with any punctuation mark. You may also use an empty title to get a title-less comment line.

Suggested key combination: Alt-Insert B.

URL: https://github.com/cool-RR/cute-wing-stuff

CommentBraces (last edited 2011-02-04 21:24:09 by RamRachum)

Disclaimer: This wiki is maintained by a community of volunteers. Wingware makes no warranty for the accuracy, fitness for a purpose, or safety of any code or information provided on this site. Please report abuse to support at wingware dot com.