I have multiple tabbed docs. I have most things working (cut, paste, etc.). Indent and Outdent work.
But, I have a problem with comment and uncomment in the first doc tab, but it works fine in all others.
my Editor control has this code:
public void EditorAction(IEditAction action)
{
bool result = mySyntaxEditor.ActiveView.ExecuteEditAction(action);
}
my application form has this code:
private void myCodeCommentBlockButton_ItemClick(object sender, ItemClickEventArgs e)
{
activePythonEditor.EditorAction(new CommentLinesAction());
}private void myCodeUncommentBlockButton_ItemClick(object sender, ItemClickEventArgs e)
{
activePythonEditor.EditorAction(new UncommentLinesAction());
}
When I try this on the first doc (which is created slightly differently), the result comes back as false. But all other commands work fine. And, this works fine on other created tabs. All highlighting and intellisense is working.
Any ideas why this might fail?