Shared Source – Comment Painter
September 22nd, 2010
The Comment Painter feature draws a bubble icon over the comment “//” symbols in CSharp, or “ ‘ ” (single quote) in Visual Basic. The source code of this feature shows how to paint bitmaps on the code editor. If the comment is active (e.g. text caret is located inside the comment) then no icon is drawn, allowing you edit the comment.
The feature resides in the open source “CR_CommentPainter” plug-in sample from the Shared Source solution.
On the “Editor\Painting\Comment Painter” options page in the Options Dialog, you can enable or disable this feature. By default, this feature is installed but inactive (disabled). You’re also able to quickly enable/disable this feature on the DXCore Visualize toolbar: