Posted 17 years ago
by Ernesto Obregon
I have upgraded to the latest version v.0.0260 and I am trying to utilize the DynamicSyntaxLanguage with my existing XML language definition file to achieve multi-line commenting using my comment character ' that is defined as my CommentDelimeterStyle - Pattern Value="'"
(1) To achieve multi-line commenting with the click of a button do I need to utilize the DynamicSyntaxLanguage class that inherits the DynamicOutliningSyntaxLanguage ?
(2) When utilizing the above class and inherited class I receive the following error when loading my XML file via:The error is:
An error occurred while loading the DynamicSyntaxLanguage '{Unknown}':
An instance of the syntax language type 'MyEditor.MyEditorDynamicLanguage, MyEditor' could not be created. Please ensure that a public constructor exists with the same parameters as the base 'DynamicSyntaxLanguage' class. The problem that occurred was:
Cannot create and abstract class.
The problem occurred near line 3, position 2
in Unknown Stream.
Where does this other constructor go ? My DynamicSyntaxLanguage class has the following constructor for a new instance:Thanks
(1) To achieve multi-line commenting with the click of a button do I need to utilize the DynamicSyntaxLanguage class that inherits the DynamicOutliningSyntaxLanguage ?
(2) When utilizing the above class and inherited class I receive the following error when loading my XML file via:
editor.Document.LoadLanguageFromXml(LanguagePath, 0)
An error occurred while loading the DynamicSyntaxLanguage '{Unknown}':
An instance of the syntax language type 'MyEditor.MyEditorDynamicLanguage, MyEditor' could not be created. Please ensure that a public constructor exists with the same parameters as the base 'DynamicSyntaxLanguage' class. The problem that occurred was:
Cannot create and abstract class.
The problem occurred near line 3, position 2
in Unknown Stream.
Where does this other constructor go ? My DynamicSyntaxLanguage class has the following constructor for a new instance:
Public Sub New(ByVal key as String, ByVal secure As Boolean)
MyBase.New(Key, Secure)
End Sub