overriding EditorCommands.CommentLines

SyntaxEditor for WPF Forum

Posted 14 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 14 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 (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.