Language definition storage

SyntaxEditor for Windows Forms Forum

Posted 19 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 19 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.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.