Hello,
The SyntaxEditor’s context menu can be changed by setting the ContextMenuService.ContextMenuProperty attached property on the SyntaxEditor instance. The ContextMenuService class is defined in the Actipro Shared Library.
Because the original context menu is set up in an OnLoaded handler of SyntaxEditor, you will need to set up your replacement context menu in an OnLoaded handler of the SyntaxEditor instance, or at another point after the OnLoaded event is handled.
Please let us know if you have further questions.