overriding EditorCommands.CommentLines

SyntaxEditor for WPF Forum

Posted 10 years ago by Chris Thompson
Version: 10.1.0521
Avatar
Can I somehow override the behavior of EditorCommands.CommentLines or should I create a Custom Edit Action instead?

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Chris,

The CommentLines command ends up calling the ILineCommenter that is registered as a service on your current language. So if you are trying to make new comment lines functionality then you could just make a new class that implements ILineCommenter and register that on your language instead.


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.