Hi,
Before, jumping straight into my problem, I would like to make sure that if i have understood right.
My question is about the SyntaxLanguage tag used in the XML language definition files. As I have learned that there is a attribute on the SyntaxLanguage tag in the XML definition named SyntaxLanguageTypeName that lets you select a different Type for the language. Therefore you can select to use any language class that inherits DynamicSyntaxLanguage, such as the DynamicOutliningSyntaxLanguage class.
For instance, a C# language might implement automatic outlining code in a class named CSharpDynamicSyntaxLanguage that should be used when loading the dynamic C# language XML definition. And, this would be specified in the SyntaxLanguage tag with attribute SyntaxLanguageTypeName as:
<SyntaxLanguage Key="C#" LanguageDefinitionVersion="4.0" Secure="True" WordContainsAdditionalCharacters="@_"
SyntaxLanguageTypeName="TestApplication.CSharpDynamicSyntaxLanguage, TestApplication"
xmlns="http://ActiproSoftware/SyntaxEditor/4.0/LanguageDefinition">
.......
.......
</SyntaxLanguage>
Now, i would discuss about my problem, and that is How one would specify the SyntaxLanguageTypeName attribute with value, if one has code behind class developed in C++/CLI project.
I tried this:
<SyntaxLanguage Key="XML" LanguageDefinitionVersion="4.0" Secure="True"
SyntaxLanguageTypeName="TestControl::XMLDynamicSyntaxLanguage, TestControl"
xmlns="http://ActiproSoftware/SyntaxEditor/4.0/LanguageDefinition">
.......
.......
</SyntaxLanguage>
but it didnt work. Can you guide me how to achieve this in C++/CLI project?
Best Regards
Mustansar
Before, jumping straight into my problem, I would like to make sure that if i have understood right.
My question is about the SyntaxLanguage tag used in the XML language definition files. As I have learned that there is a attribute on the SyntaxLanguage tag in the XML definition named SyntaxLanguageTypeName that lets you select a different Type for the language. Therefore you can select to use any language class that inherits DynamicSyntaxLanguage, such as the DynamicOutliningSyntaxLanguage class.
For instance, a C# language might implement automatic outlining code in a class named CSharpDynamicSyntaxLanguage that should be used when loading the dynamic C# language XML definition. And, this would be specified in the SyntaxLanguage tag with attribute SyntaxLanguageTypeName as:
<SyntaxLanguage Key="C#" LanguageDefinitionVersion="4.0" Secure="True" WordContainsAdditionalCharacters="@_"
SyntaxLanguageTypeName="TestApplication.CSharpDynamicSyntaxLanguage, TestApplication"
xmlns="http://ActiproSoftware/SyntaxEditor/4.0/LanguageDefinition">
.......
.......
</SyntaxLanguage>
Now, i would discuss about my problem, and that is How one would specify the SyntaxLanguageTypeName attribute with value, if one has code behind class developed in C++/CLI project.
I tried this:
<SyntaxLanguage Key="XML" LanguageDefinitionVersion="4.0" Secure="True"
SyntaxLanguageTypeName="TestControl::XMLDynamicSyntaxLanguage, TestControl"
xmlns="http://ActiproSoftware/SyntaxEditor/4.0/LanguageDefinition">
.......
.......
</SyntaxLanguage>
but it didnt work. Can you guide me how to achieve this in C++/CLI project?
Best Regards
Mustansar