Posted 15 years ago
by Joachim Schwieren

Hi, due to the fact that we want to encrypt all our dynamic syntax language files, we have to remove all "filename" references from the XML file of parent languages that point to child languages and then we have to add this references again at runtime in code.
How can we make an immediate transition in this siutation ?I now remove Filename="VBScript.xml" ChildLanguageBackColor="WhiteSmoke" from the XML file and the reference to the child language is gone; now how can I add this reference again from code? I have already loaded the VBScript.xml with encryption manually but how can I assign it to the parent language so that it behaves in the same as if would have been loaded normally with the reference to the XML file in the language definition?
Would be nice if you could give an example.
Thanks for your help!
Joe
How can we make an immediate transition in this siutation ?
<State Key="ASPDirectiveCodeState" Filename="VBScript.xml" ChildLanguageBackColor="WhiteSmoke">
<!-- Scopes -->
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="ASPDirectiveStartToken" Style="ASPDelimiterStyle" PatternValue="<%" />
<ExplicitPatternGroup Type="EndScope" TokenKey="ASPDirectiveEndToken" Style="ASPDelimiterStyle" PatternValue="%>" />
</Scope>
</Scopes>
</State>
Would be nice if you could give an example.
Thanks for your help!
Joe