Language definition storage

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by Neil
Avatar
Hi,

Is it possible to store language definition XML files in a database instead of file (to prevent them from being inadvertently modified).

If yes (i.e. Db storage is possible), how is the new language loaded - since we can no longer use the Member LoadFromXml and LoadLanguageFromXml methods.

If no (db storage not possible), how can one prevent a user from modifying the language definition file?

I look forward to your response

thanks

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes the static SyntaxLanguage.LoadFromXml has an overload (and so does SaveToXml) for reading/writing from a Stream. So you can persist the Stream in the database.

If you do want to use secure files, then set the Secure flag when you create a language, and also save your XML files (via SaveToXml) with an non-zero encryption key. That will scramble the language definition so it is unreadable.


Actipro Software Support

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.