Posted 18 years ago by Ernst
Avatar
Will you support IntelliPrompt for JScript?

Is it possible to enable IntelliPrompt for a language loaded as

syntaxEditor.Document.LoadLanguageFromXml (...)

instead of using

syntaxEditor.Document.Language = new CSharpSyntaxLanguage();

Thanks,
Ernst

[Modified at 02/27/2007 01:30 PM]

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
JScript may be a language we add advanced functionality to in the future.

However even though it isn't available from the languages we provide, you can always code IntelliPrompt yourself for any language, including dynamic languages. The dynamic C# language code-behind file CSharpDynamicSyntaxLanguage.cs shows a sample implementation of a member list for XML documentation tags. This is a simple example but you can do more token parsing to get more advanced.

If you truly want to create an advanced language, you can use our parser generator and build a semantic parser with that and then add code to your language class to determine context at an offset and show IntelliPrompt based on that. The "Simple" language we include in the sample project is a simple example of an advanced language that does a lot of this.

If you are looking for plain JScript support then you can always scan the last token like when a '.' character is pressed, if it is "Math", then show the member list for the Math object, etc. That's pretty easy to do.


Actipro Software Support

The latest build of this product (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.