SyntaxEditor JavaScript Completion

by Avatar Bill Henning (Actipro) - 5 comments
Thursday, February 27, 2014 at 1:09pm

PostBannerSyntaxEditorDevNotes

Last year we added an advanced JavaScript language implementation to the SyntaxEditor Web Languages Add-on.  This language implementation (available in the WPF, Silverlight, and WinRT/XAML versions of the add-on) includes features like syntax highlighting, parsing with AST generation, syntax error reporting, code outlining, etc.

In today's post I'd like to announce that we have added a simplistic completion provider to the language that should help end user coding productivity.

Completion Provider

The new completion provider displays a completion list when Ctrl+Space is pressed:

JavaScriptCompletion

The concept is similar to completion lists found in other popular IDEs like Sublime, where the list includes JavaScript keywords and identifiers found throughout the document.  The list has been set up to accept acronym and shortcut item matchers, meaning that any loosely-matched text will select items.  The list also auto-shrinks to only show matching items.

Summary

TaskDownload TaskLiveDemo TaskBuyNow

Actipro's WPF Controls

Over 100 UI controls for building beautiful Windows Presentation Foundation desktop apps.

Learn More

Over 100 UI controls for building beautiful Windows Presentation Foundation desktop apps.

Includes editors, docking windows, MDI, property grids, charts, tree controls, ribbons, gauges, themes, and much more.

Learn More Download Free Trial

Comments (5)

Posted 6 years ago by Daniil Monin - Software Architect, Sovacode Software
Avatar
As for me - it is great news! Really! Thanks for this! By the way, VS 2013 Update 2 will added support for JSON format. Do you have any plans to add support for JSON in JavaScript too? Link to Update 2: http://support.microsoft.com/kb/2927432 Link to JSON editor screenshot in VS2013U2: http://habrastorage.org/getpro/habr/post_images/d82/293/561/d82293561a7e3f5b058f1950575801ff.png
Posted 6 years ago by Bill Henning (Actipro) - Actipro Software LLC
Avatar
Hi Daniil, Can you provide some more detail on what you're looking for? Such as, do you mean you'd like to see a separate JsonSyntaxLanguage implementation that is just for pure JSON?
Posted 6 years ago by Daniil Monin - Software Architect, Sovacode Software
Avatar
Hello, thanks for response! It's nice to have a separate JsonSyntaxLanguage implementation and improvement support for Json in JavaScriptSyntaxLanguage, because Json is very popular now in JavaScript. For example: http://www.json.org/js.html Thanks!
Posted 6 years ago by Bill Henning (Actipro) - Actipro Software LLC
Avatar
Hi Daniil, Good news... we have started on a standalone JsonSyntaxLanguage that will be added to the Web Languages Add-on. For the other topic, can you go into specifics on what you would like to see enhanced in the JavaScriptSyntaxLanguage in relation to JSON?
Posted 6 years ago by Daniil Monin - Software Architect, Sovacode Software
Avatar
Thanks! It's very good news for me! About JavaScriptSyntaxLanguage, I have already asked about improvement formatting code: http://www.actiprosoftware.com/community/thread/21356/json-format-as-arguments-in-function Thank you!

Add Comment

Please log in to a validated account to post comments.