DynamicSyntaxLanguage.LoadFromXml (stream overload)

SyntaxEditor for Windows Forms Forum

Posted 12 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 12 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 12 years ago by Erik Pepping - RADVenture B.V
Avatar
The temp folder technique worked great.

Thanks
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.