DynamicSyntaxLanguage.LoadFromXml (stream overload)

SyntaxEditor for Windows Forms Forum

Posted 17 years ago by Erik Pepping - RADVenture B.V
Version: 4.0.0259
Avatar
Currently we keep the languages inside our assembly resources.
When loading them we use the DynamicSyntaxLanguage.LoadFromXml (stream overload) method.

This technique worked fine for our languagess but now, i need to load HTML.
Since this language contains childs languages it can't find the related resources (VBSCript, etc) :
<State Key="ASPDirectiveResponseWriteState" Filename="ActiproSoftware.VBScript.xml" ChildLanguageBackColor="WhiteSmoke">


Any idea or option? (besides deploing the XMLS to our customers..)

Comments (2)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You could do a couple things... one would be to load the languages separately and dynamically combine them via code similar to in our one sample which you have been working with.

Or you could save your XML resources out to a temp folder, load from the root language (which will pull in the others), and delete the files.

Both options will prevent the customer from seeing the resources.


Actipro Software Support

Posted 17 years ago by Erik Pepping - RADVenture B.V
Avatar
The temp folder technique worked great.

Thanks
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.