#408 Enhancement: Stream Uncomment added, cross-calling of block-

Don HO

Block Comment
Comments either the current line or several lines if text of several lines is selected.
If language does not support block-comment, the current line or the selected text is commented using stream-comment.

Stream Comment
Comments the selected text or the current line if no text is selected.
If language does not support stream-comment, the current line or all lines of selected text are commented using block-comment.
- CommentCode: BlockToStreamComment

Un-Comment (doBlockComment(cm_uncomment))
First, the current line is (or selected lines are) un-commented using block-comment.
If there was no block-comment, then a stream-comment around the beginning of the selection, around the end of the selection and all comments within the selection are un-commented.

Patch: NppPatch_6.1.5_StreamUnComment.patch
- Commentcode: unDoStreamComment

Icons for Comment and UnComment added to the Toolbar
Toolbar icon for Comment uses block comment for current line or selected lines.
With the above enhancement for Un-Comment, block- AND stream- comments are uncommented using the toolbar icon for Un-Comment
By the way, the provided icons are not that nice. You should generate some icons fiting to the Notepad++ symbol icon stile!
Patch: NppPatch_6.1.5_CommentIcons.patch, NppPatch_6.1.5_CommentIconFiles.zip
- CommentCode: IconAdd


  • FLS

    FLS - 2012-08-02

    StreamUnComment and Block-/Stream- cross calling

  • Don HO

    Don HO - 2012-08-31

    Thank you for the patch.
    Committed in rev 948.
    "Stream Uncomment" is added in the menu and context menu.
    `However, the toolbar part patch is not integrated due to keeping toolbar clean policy.
    It'll be in the next release.


  • Don HO

    Don HO - 2012-08-31
    • assigned_to: nobody --> donho
    • priority: 5 --> 7
    • milestone: 899432 --> Next_release
  • Don HO

    Don HO - 2012-09-16
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks