Posted 20 years ago
by Scotch
- Las Vegas, NV
![Avatar](https://secure.gravatar.com/avatar/274b8b12ec7496ddc10467fa5a34848a.jpg?s=64&d=identicon&r=g)
I'm trying to create a language definition without using a separate XML file. I started with an instance of "SyntaxLanguage", but apparently you have to do something with it before it can be used. The following code compiles OK, but when I set the syntaxEditor.Document.Text property, I get an "Object does not exist" error from the DLL:
SyntaxLanguage newLanguage = new SyntaxLanguage("MediaScript", false);
syntaxEditor.Language = newLanguage;
Is there a code sample that shows what is needed to do this correctly?
Regards,
Scott
SyntaxLanguage newLanguage = new SyntaxLanguage("MediaScript", false);
syntaxEditor.Language = newLanguage;
Is there a code sample that shows what is needed to do this correctly?
Regards,
Scott