Is there a way to turn off the squiggle for just a few syntax errors? Specifically, we would like to suppress the squiggle for the “End of statement expected” error.
Here is our scenario:
We are using the Syntax Editor control with the .NET Languages Add-on to provide syntax highlighting and intellisense with the Windows Workflow Re-hosted Designer. Actipro provided us with sample code and we have made a few modifications to get it to work in our scenario. Overall, we have been very impressed with the control and add-on.
The default Windows Workflow editor is basically a textbox, but by using the Re-hosted Windows Workflow Designer ExpressionEditorService and IExpressionEditorInstance features we replaced the default textbox with the Actipro Syntax Editor control. When constructing the Syntax Editor control, we enumerate the variables and namespaces to build the Header and Footer text for the Syntax Editor. When the editor control appears it allows the user to type in conditional expressions. They receive full intellisense and syntax highlighting.
For some Windows Workflow Activities, such as the IF activity, the user needs to provide a Boolean expression such as User.Name = “Bob”. The problem is, in this scenario, the Syntax Editor display a squiggle at the end of the expression which states “End of Statement expected”. It would be nice to turn this off squiggle because end users think they have an error.