
I am using the VBSyntaxLanguage() class for my language. The syntax checker complains that "an Imports, Assembly, Module, or Namespace declaration is expected". I understand why, because in my code editor I simply started typing statements that would normally be found in a Sub(). Although in a normal code file this would not be allowed, in my application the code window represents the contents of a Sub() and the application is responsible for glueing the code together into a Sub(), Class, Namespace and so on. How can I let the SyntaxEditor know that the typed code is actually in a method without wrapping the code in all the required constructs?
Second, is there a code example on how I can get the editor to auto capitalize the first letter of each key word as I type similar to what VS2010 does for VB?
Second, is there a code example on how I can get the editor to auto capitalize the first letter of each key word as I type similar to what VS2010 does for VB?