Join  |  Sign in
Code Editor VBScript highlighting and intellisense

09-Nov-2017 06:03 AM

Abhishek

Abhishek

Posts: 5

Hello

We are looking to use Code Editor in our application.

We'd like to start with the VBScript language, strip it of all its internal functions and add our own functions.

We have a list of functions with its signatures, ie parameter names and descriptions.  We need functionality at two levels:

- Editor Text Display: The function name should be highlighted in bold.

- Intellisense: During editing, the function names would be presented as a list. Once a function is chosen, its signature would be shown with parameter highlighting in bold.

Kindly advise whether above is possible and if yes, pl provide a code sample.

Thanks
  Reply

10-Nov-2017 07:34 PM

Andrew Medvedev

Andrew Medvedev

Posts: 50

Hi,

yes this is possible.
Please try our demo using this link:
http://www.alternetsoft.com/projects/VbScriptDemo.zip

regards,
Andrew
  Reply

10-Nov-2017 09:52 PM

Abhishek

Abhishek

Posts: 5

Looking good.

Currently Intellisense is being enabled by using the following line of code:

repository.RegisterType("", typeof(VbScriptOwnFunctions), true);


What are the other ways to register function signatures ? We have a list of function signatures but they are not contained in a class/type.


Thanks


  Reply

14-Nov-2017 11:30 PM

Andrew Medvedev

Andrew Medvedev

Posts: 50

Hi,

yes this is possible. Another way is load function descriptions from xml file like it done in this demo:
http://www.alternetsoft.com/projects/VbScriptDemo.zip

regards,
Andrew
  Reply

15-Nov-2017 05:08 AM

Abhishek

Abhishek

Posts: 5

Looks good - will try to incorporate and test.
  Reply