Hi ,
I have CodeEditor UserControl which contains XamSyntaxEditor on it .
I am loading VB file into syntax Editor ,Now on button 'Check Syntax' ,currently Errors are displayed /red sqiggly lines appear though logically file is correct .
Syntax editor is not considering supporting DLL which are required to recognize some classes etc.
Can we Import DLL /add files required to compile file which is loade in Syntax Editor like visual studio does ?
I don't believe that is possible, but I just took some time and was able to easily (8 lines of code) create a modified VB language which supports code blocks at the root of the file. Basically, it makes the "Block" symbol the start symbol of the grammar rather than the "CompilationUnit" symbol. See attached sample.
is it possible to load the whole file but only show a code fragment in the syntax editor and hide the rest so that the visual feedback on error check is correct?
Thanks,
Maria
I did submit this as a feature request, see http://ideas.infragistics.com/forums/192363-wpf/suggestions/4749954-support-header-and-footer-properties-in-syntaxedit.
I don't believe there are any plans for that currently, but feel free to add this as a feature request here: http://ideas.infragistics.com/forums/192363-wpf.
Are there any plans to support "header" and "footer" properties for the editor control such that additional code is considered when doing the syntax check? The Actipro SyntaxEditor provides such functionality for ease in editing code fragments.