Silverlight Studio adds code fragment editing

Released: Oct 31, 2011

Updates in this release

Updates in 2011.2

  • IntelliPrompt Parameter Info - IntelliPrompt parameter info popups show the end user information about the member signature being edited and its parameters, if any.  SyntaxEditor 2011.2 adds this highly-requested new UI feature, and makes it easy to implement parameter info for your own custom languages.  Parameter info can even be implemented such that the caret properly handles being in nested calls and shows information for the closest containing signature. As with quick info, parameter info can handle rich-formatted content display using HTML-like markup tags.  Colors and font weights or styles can be used to bring attention to portions of the info tip. Multiple signature options can be displayed in a single parameter info tip. In those scenarios, arrows automatically appear that can be clicked. Alternatively the end user can use the up/down arrow keys to switch between options. The .NET Languages Add-on has been updated to fully take advantage of the new parameter info feature.  Both of the C# and VB language implementations now have parameter info features out-of-the-box, making for a true Visual Studio-like code editing experience. When there are multiple overloads for a signature, the resolver will do its best to show the one that best fits the code that has been typed thus far.
  • Single-Line Edit Mode - Single-line edit mode is an option you can activate to make the editor appear like a standard TextBox, where there are no scrollbars and no line terminators are accepted as input. While in single-line edit mode, nearly all the standard UI features found in SyntaxEditor are still available, such as automated IntelliPrompt, adornments, etc.  This makes for a very nice way to edit small code snippets or expressions.
  • Code Fragment Editing - Code fragments provide the ability for an end user to edit a portion of a document, such as a method body or just an expression. The benefit of using code fragments is that you can also set up header and footer text to get pre- and post-pended to the text being edited, when it is sent off for parsing and AST-building. Since a complete document is then used for parsing and resolution, automated IntelliPrompt, code outlining, and other features work correctly on the fragment being edited. This is an especially useful feature when combined with languages like the C# and VB languages in the .NET Languages Add-on. Imagine being able to edit a set of C# statements with full automated IntelliPrompt and the user not being able to see or edit the containing class.You can also combine the code fragments feature with single line edit mode to allow for single-line editing of expressions.