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

The Actipro Blog

Tag Cloud

  • aero
  • blog
  • docking
  • editors
  • gauge
  • intelliprompt
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • winforms
  • wpf

Latest Twitter News

November 21, 2011 at 11:14 AM
#WPF Studio 2011.2 is out now! Includes enhanced themes for native WPF conrtols and new SyntaxEditor features. http://t.co/uEMCaGPG

September 26, 2011 at 1:25 PM
If you'd like to see our #WPF / #Silverlight SyntaxEditor code editor control ported to Metro, provide feedback here: http://t.co/xXBNIDTi

September 15, 2011 at 8:31 PM
If you want to see SyntaxEditor eventually show up in Win8's #xaml UI, be sure to add your support to this MS thread: http://t.co/FBjz6TuC

August 15, 2011 at 1:47 PM
New SyntaxEditor IntelliPrompt parameter info feature docs/samples ready for the 2011.2 #WPF and #Silverlight releases. http://t.co/ezoYIjv

August 2, 2011 at 2:40 PM
First look at new automated IntelliPrompt parameter info coming to our C#/VB editor control in #WPF / #Silverlight http://t.co/CUz6O1T

Twitter Follow us on Twitter

Month List

  • 2012
    • February (3)
    • 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 (289)
  • RSS feed for Blog SummaryBlog Summary (13)
  • RSS feed for GeneralGeneral (34)
  • RSS feed for In developmentIn development (150)
  • RSS feed for New featuresNew features (140)
  • RSS feed for New productNew product (30)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (71)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (20)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WPFWPF (235)
  • 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 advanced XML language to get xs:any support for IntelliPrompt

August 31, 2010 at 6:14 AM
by Bill Henning (Actipro)

As mentioned in one of our previous posts, we’ve been working on a port of our SyntaxEditor Web Languages Add-on from WinForms to the WPF version of SyntaxEditor.  We’re finishing up some last features on it before it will be ready to launch alongside WPF Studio 2010.2 in the coming weeks.

The advanced XML syntax language implementation in the add-on allows you to specify XML schemas to use for validation and to drive automated IntelliPrompt for the end user.  In the previous post on the subject we showed how to create an XHTML editor in a few lines of code with automated IntelliPrompt popups.

One feature we just implemented was the ability to properly support xs:any nodes defined in the XML schemas.  xs:any allows a schema to indicate that elements from any, other, or specific namespaces can be included as content within another element.

Best of all, we ported this new functionality back to the WinForms Web Languages Add-on too!

Let’s see an example…

XsltWpf1

Here is the WPF SyntaxEditor showing an XSLT document loaded.  The XSLT is doing a transform to HTML.  In the screenshot the mouse is over the xsl:value-of element, showing a quick info tip.  Now let’s start typing a new start tag…  More...

Tags: syntaxeditor, intelliprompt, wpf, winforms
Filed under: Actipro, In development, New features, WPF, Windows Forms
Submit to DotNetKicks...
Permalink | Comments (2)

FeedBurner blog post RSS feed issue fixed

August 27, 2010 at 1:39 AM
by Bill Henning (Actipro)

We noticed this morning that FeedBurner hasn’t been publishing our blog posts in the RSS feed for the last couple weeks.  The problem appears to be that our discussions on the new grammar framework were very long and created a feed size larger than 512KB.  At that threshold, FeedBurner stops publishing the blog.  This is good to know for anyone out there who uses FeedBurner.  We resolved the issue by temporarily reducing the number of items in the feed.

Make sure you click on over to our http://blog.actiprosoftware.com and take a look at the posts we’ve made recently that may not have shown up in your RSS feed.

Here’s a quick list of recent posts that you may have missed:

  • SyntaxEditor grammar/AST framework part 1: Overview
  • SyntaxEditor grammar/AST framework part 2: Introduction to symbols and EBNF terms
  • SyntaxEditor grammar/AST framework part 3: Creating a grammar for the Simple language
  • SyntaxEditor grammar/AST framework part 4: Introduction to customizing tree construction
  • SyntaxEditor grammar/AST framework part 5: Optimizing the Simple grammar’s AST output
  • SyntaxEditor grammar/AST framework part 6: Introduction to callbacks and error handling
  • SyntaxEditor grammar/AST framework part 7: Adding error handling to the Simple grammar
  • Silverlight Studio 2010.1 build 102 released
  • SyntaxEditor grammar/AST framework part 8: Grammar debugger preview
  • SyntaxEditor for WPF - HTML editor sample preview using Web Languages Add-on
Tags: blog
Filed under: Actipro, General
Submit to DotNetKicks...
Permalink | Comments (0)

SyntaxEditor for WPF - HTML editor sample preview using Web Languages Add-on

August 26, 2010 at 9:20 AM
by Bill Henning (Actipro)

We’ve been hard at work on WPF Studio 2010.2, which we should have out in September.  One new product that will ship along side of it is a port of our Web Languages Add-on that we have for the WinForms SyntaxEditor.

This add-on has an advanced XML syntax language implementation that allows you to specify an XML schema set to provide validation and automated IntelliPrompt within the code editor, all with just a few lines of code.  Let’s take a peek at a new HTML Editor demo we’re adding to WPF Studio to show off the add-on:

HtmlEditor1

Here we have the sample that shows an XHTML document loaded.  We’ve configured our advanced XML language with an XSD we downloaded from the W3C for XHTML.  And with a few lines of code, voila, instant HTML editor!  More...

Tags: wpf, syntaxeditor
Filed under: Actipro, New product, WPF, In development
Submit to DotNetKicks...
Permalink | Comments (7)

SyntaxEditor grammar/AST framework part 8: Grammar debugger preview

August 20, 2010 at 8:32 AM
by Bill Henning (Actipro)

In the previous post, we added error handling to our Simple language grammar.  This allowed the grammar parser to recover from any invalid syntax in a document being parsed, and to still produce an AST.

It concluded the three basic stages in building a grammar:

  1. Configure terminals, non-terminals, and EBNF productions
  2. Add customized tree constructors to productions that create a concise AST
  3. Add error handling to recover from invalid syntax

Now what happens when in the middle of the grammar design and something is not parsing as intended?  It can be tricky to know what the parser is “thinking” since it’s a bit of a black box.

Debugger1

To solve this issue, we’ve built complete debugging capabilities directly into the parser and have even enhanced the Language Designer application to have a complete debugger UI!  More...

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, Silverlight, WPF
Submit to DotNetKicks...
Permalink | Comments (2)

Silverlight Studio 2010.1 build 102 released

August 16, 2010 at 5:37 AM
by Bill Henning (Actipro)

We’ve just published build 102 of Silverlight Studio.  Major updates include:

  • A free Ruby language definition for SyntaxEditor
  • SyntaxEditor Language Designer updates including token and lexical state ID generation for dynamic lexers
  • Improvements to our WPF/Silverlight compatibility layer for dependency properties

Head over the announcement post for details of what’s new.

Tags: silverlight
Filed under: Actipro, New features, Silverlight
Submit to DotNetKicks...
Permalink | Comments (2)

SyntaxEditor grammar/AST framework part 7: Adding error handling to the Simple grammar

August 13, 2010 at 1:30 AM
by Bill Henning (Actipro)

In the previous post, we saw how the grammar framework supports callbacks nearly everywhere in the EBNF terms.  You are able to inject custom code before and after any term is matched.  One of the most important injection points is the Error callback since that allows you to tell the parser how to handle errors.

In today’s post, we’ll examine the importance of adding error handling.  We’ll enhance our Simple language grammar to properly recover from nearly any invalid syntax in a document so that it can continue parsing the rest of the document.

Why add error handling?

An error occurs when one or more terminals is expected by the parser (per the grammar) but a different token is found at the current location in the document.

By default when this scenario occurs, the parser will report a parse error if a single terminal is expected.  If there is more than one terminal that could be next, and if the containing non-terminal has an error alias set, it will report a parse error instead.  This behavior is described in the previous post. 

Following any possible error reporting, the parser will immediately exit the current non-terminal and will continue up the non-terminal stack, exiting each one as it goes until the root non-terminal is reached and exited itself.

Thus the result is that if any invalid syntax is found in a document, parsing stops at that point and no AST will be built.  That’s definitely not good since we expect code being parsed from our SyntaxEditor control editing to be invalid most of the time.  End users are continuously typing in it.

As shown in the previous post, the grammar framework has a lot ways to recover from errors, and they are easy to add.  More...

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, Silverlight, WPF
Submit to DotNetKicks...
Permalink | Comments (2)

SyntaxEditor grammar/AST framework part 6: Introduction to callbacks and error handling

August 12, 2010 at 1:22 AM
by Bill Henning (Actipro)

In the previous post, we optimized the tree construction output of our Simple language to be very concise.  The next step in building a grammar is to make sure that it properly handles errors.  After all, since this grammar framework is intended to be used with SyntaxEditor, our code editor control, we have to assume that most of the time the document’s code passed to our grammar parser will be in an invalid state.  The user is continuously typing and modifying it.

In today’s post we will look at the various callbacks that are available to you, probably the most important of which are error handling callbacks.  We’ll also dig into error handling options.

What is a callback?

As we’ve seen in the previous posts in this series, our entire grammar is built directly in C# or VB code.  We do not do code generation like a lot of other parser generators do.  A benefit of this is that you can interact directly with objects in the grammar.  More...

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, WPF, Silverlight
Submit to DotNetKicks...
Permalink | Comments (2)

SyntaxEditor grammar/AST framework part 5: Optimizing the Simple grammar’s AST output

August 11, 2010 at 1:04 AM
by Bill Henning (Actipro)

In the previous post we gave an introduction to the powerful tree construction mechanism that is built into the grammar/AST framework and talked about each of the built-in tree construction nodes that are available.  We also mentioned that for very rare scenarios where advanced logic is needed to build a particular AST node, you can create and inject your own ITreeConstructionNode-based classes to handle the task.

In today’s post, we’re going to revisit the Simple language and will enhance our grammar productions so that we make the resulting AST very concise.  More...

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, WPF, Silverlight
Submit to DotNetKicks...
Permalink | Comments (4)

SyntaxEditor grammar/AST framework part 4: Introduction to customizing tree construction

August 10, 2010 at 1:00 AM
by Bill Henning (Actipro)

In the previous post of this series, we walked through how to create a grammar for the Simple language (which is similar to a Javascript subset) using our new grammar/AST framework.  We showed how easy it was to write the grammar using EBNF-like notation but completely from within your native C#/VB code.

We also showed how the grammar automatically generates an AST of the parsed document for you.  The generated tree generally has much more information than what is useful though.  Today’s post is going to show how we can completely customize the AST output so that it focuses only on the information we care about.

Our grammar/AST framework has an extremely powerful tree construction mechanism with numerous built-in helper methods to do common tree construction tasks.  You also have the ability to create completely custom tree construction nodes via C#/VB code if you like.

Default tree construction

The default tree constructors will output nearly everything that is parsed.  Each AST node that is generated automatically contains the offset range of the text that created it.  More...

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, WPF, Silverlight
Submit to DotNetKicks...
Permalink | Comments (2)

SyntaxEditor grammar/AST framework part 3: Creating a grammar for the Simple language

August 9, 2010 at 1:20 AM
by Bill Henning (Actipro)

In the previous post we gave a detailed introduction to symbols, EBNF terms, and how you can translate a language’s EBNF specification to our grammar framework.

In today’s post we’re going to write a C#-based grammar using our new framework for a language called Simple.  The Simple language is basically a small subset of a Javascript-like language.  When we’re done, we’ll load it up into a SyntaxEditor and will look at the AST results that are generated for us based on some input code.

Finding the language specification

The first thing to do when building a Grammar for a language is to locate the language specification for the language.  Nearly all programming languages have some sort of formal EBNF specification that tell parsers and compilers how to interpret their code.  More...

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, Silverlight, WPF
Submit to DotNetKicks...
Permalink | Comments (3)
<< Previous posts
Copyright © 1999-2012 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us