Uncommenting using RangeLineCommenter

SyntaxEditor for WPF Forum

Posted 4 years ago by Banukobhan Nagendram
Version: 15.1.0624
Platform: .NET 4.5
Environment: Windows 7 (64-bit)
Avatar

I'm using RangeLineCommenter to comment/uncomment.

Consider the following comment.

/*
Comment line number 1
Comment line number 2
Comment line number 3
*/

 

If I select full comment with delimiter or full comment without delimiter, it shall be able to uncomment using RangeLineCommenter.

 

But it is not working properly, if the full comment is not selected.
If I have the cursor within the comment or comment partially selected, then RangeLineCommenter is unable to uncomment it.
But Visual Studio 2015 is able to uncomment it.

Please fix this issue.

Comments (1)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We will make a couple enhancements to the RangeLineCommenter class for the 2016.1 version.  First, you will be able to specify a CommentTokenId which if your comment is a single token, you'd give pass that ID.  That will allow it to automatically locate the comment regardless of where the selection is within it.  If you have a multi-token comment or more advanced scenario, we'll let you override the comment locating method so you can implement custom logic as needed.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.