• Products
  • Download
  • Purchase
  • Support
  • Company
Actipro Software company logo
Twitter Follow Actipro RSS Subscribe (RSS Feed)

The Actipro Blog

Tag Cloud

  • blog
  • docking
  • editors
  • intelliprompt
  • micro charts
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • web site
  • winforms
  • winrt
  • wpf

Latest Twitter News

May 14, 2012 at 2:50 PM
IntelliPrompt code snippet features have been added to our VS-like code editor control for #WPF and #Silverlight. http://t.co/1IchOJrr

May 10, 2012 at 9:40 PM
Our new Micro Charts control products for #WPF and #Silverlight are out now. Come build some dashboards with them! http://t.co/EEERvff0

May 7, 2012 at 6:47 AM
Today we look at bar charts, for our upcoming #WPF, #Silverlight, and #WinRT Micro Charts product. http://t.co/gxHuPS6B

May 4, 2012 at 6:25 AM
See a gallery of micro area charts in our upcoming release for #WPF, #Silverlight, and #WinRT. http://t.co/qDXGwW8B

May 3, 2012 at 6:32 AM
See a variety of line charts that are easy to make with our upcoming #WPF, #Silverlight, #WinRT Micro Charts product. http://t.co/mbkX6tJd

Twitter Follow us on Twitter

Month List

  • 2012
    • May (9)
    • April (6)
    • March (11)
    • February (11)
    • January (2)
  • 2011
    • December (2)
    • November (7)
    • October (2)
    • September (1)
    • August (5)
    • July (3)
    • June (6)
    • May (5)
    • April (8)
    • March (4)
    • February (5)
    • January (9)
  • 2010
    • December (9)
    • November (10)
    • October (4)
    • September (8)
    • August (12)
    • July (9)
    • June (7)
    • May (6)
    • April (7)
    • March (6)
    • February (6)
    • January (4)
  • 2009
    • December (2)
    • November (2)
    • October (12)
    • September (3)
    • August (11)
    • July (10)
    • June (6)
    • May (3)
    • April (7)
    • March (6)
    • February (8)
    • January (10)
  • 2008
    • December (10)
    • November (2)
    • October (3)
    • September (5)
    • August (5)
    • July (8)
    • June (4)
    • May (4)
    • April (10)
    • March (8)
    • February (1)
    • January (2)

Category List

  • RSS feed for ActiproActipro (321)
  • RSS feed for Blog SummaryBlog Summary (15)
  • RSS feed for GeneralGeneral (43)
  • RSS feed for In developmentIn development (164)
  • RSS feed for New featuresNew features (155)
  • RSS feed for New productNew product (38)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (90)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (22)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WinRTWinRT (9)
  • RSS feed for WPFWPF (257)
  • RSS feed for XAMLXAML (23)

About Us

Actipro Software is a leading provider of .NET user interface controls for the WPF, Silverlight, and WinForms frameworks, and is most well-known for their SyntaxEditor syntax-highlighting code editor control.

Please take some time to learn more about us and our product offerings.

SyntaxEditor - Code Fragments

August 18, 2011 at 7:26 AM
by Bill Henning (Actipro)

BlogPostBanner

In today’s post, I’d like to show off another highly requested feature coming to SyntaxEditor for WPF/Silverlight in the 2011.2 version: code fragments!

What Are Code Fragments?

There are often cases where a customer wants to use our advanced C#/VB languages from the .NET Languages Add-on to allow the user to edit either a method body, or even simply an expression.  The problem is that for automated IntelliPrompt to continue working, there must be a valid containing class, member, etc.  In these scenarios though, the developer doesn’t generally want the end user to be able to see or edit those. 

Code fragments is a perfect solution for this scenario.  Documents now allow you to optionally set header and footer text.  When set, this text is prepended (header) and postpended (footer) to the document snapshot’s text when it is submitted to the language’s parser.

Here’s the new sample for this feature:

CodeFragments

You can see that the middle editor is normally what an end user would see, just a set of C# statements.  However when the C# parser gets text from that editor to parse, it actually sees the concatenation of the header/fragment/footer text together, and builds an AST and reports syntax errors accordingly.  In the screenshot, there is a syntax error squiggle line after firstItem since it expects a close parenthesis.

CodeFragments2

In the screenshot above, I’ve displayed a completion list for the firstItem variable.  This variable was implicitly typed to be an int because its initializer came from the result of a LINQ method on a List<int>, which came in as a parameter from the containing method in the header text.

That’s really cool stuff!  With this feature you can now edit statements or an expression in an editor with full IntelliPrompt capabilities.  And this all will work seamlessly with any custom language too!

This new feature will be released as part of the 2011.2 version.

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, New features, Silverlight, WPF
Submit to DotNetKicks...
Permalink | Comments (5)

Related posts

SyntaxEditor IntelliPrompt Code Snippets Today I'd like to show a preview of the next huge feature area coming to SyntaxEditor for WPF and ...Code reviewing in SyntaxEditor for WPF, demoing upcoming intra-text adornments featuresAs mentioned in our previous blog post, we’ve been hard at work on some very major new features for ...First video of SyntaxEditor for Silverlight - Syntax-highlighting code editor controlA couple months ago we make a post on our blog asking if anyone would be interested in a port of our...

Comments

August 24, 2011 at 22:57  

Paymon

Hi Bill,

Do you know when that version will be released?

Thanks

Paymon United Kingdom

August 25, 2011 at 00:59  

Bill Henning (Actipro)

Most of the SyntaxEditor features we have planned for the first 2011.2 release are done and ready to go.  However we're working on finishing up a new product as well, along with related updates across our other existing products that need to be completed before the release will be ready.  We're working as fast as we can on it and should have it ready in the next several weeks.

Bill Henning (Actipro) United States

August 25, 2011 at 01:03  

Paymon

Thanks for your quick response Bill.

This feature is essential for how we are trying to use your product. On the off chance is it off topic to release a hot fix or pre-launch release of your Silverlight editor with this feature? Smile

Thanks

Paymon United Kingdom

August 25, 2011 at 02:13  

Bill Henning (Actipro)

We may be able to hook you up with a pre-release (unfinished in other areas and not yet production-ready) so that you can work with the SyntaxEditor features.  Please write our support address if you are interested in that.

Bill Henning (Actipro) United States

October 5, 2011 at 03:34  

trackback

Actipro Blog 2011 Q3 Posting Summary

Actipro Blog 2011 Q3 Posting Summary

The Actipro Blog - WPF, Silverlight, and WinForms Development

Comments are closed
Copyright © 1999-2012 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us