• 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

Twitter Feed

Tweets by @Actipro

Month List

  • 2013
    • June (3)
    • May (7)
    • April (7)
    • March (9)
    • February (2)
    • January (7)
  • 2012
    • December (4)
    • November (7)
    • October (5)
    • September (7)
    • August (5)
    • July (9)
    • June (11)
    • May (12)
    • 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 (406)
  • RSS feed for AppsApps (8)
  • RSS feed for Blog SummaryBlog Summary (19)
  • RSS feed for Customer ShowcaseCustomer Showcase (1)
  • RSS feed for GeneralGeneral (43)
  • RSS feed for In developmentIn development (198)
  • RSS feed for New featuresNew features (211)
  • RSS feed for New productNew product (56)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (146)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (28)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WinRTWinRT (39)
  • RSS feed for WPFWPF (318)
  • RSS feed for XAMLXAML (34)

About Us

Actipro Software is a leading provider of .NET user interface controls for the WPF, WinRT XAML, 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 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! 

Code outlining (folding) is fully supported and operates over block elements that contain other elements.

In the screenshot above, we pressed Ctrl+Space in the head element block and a completion list displays, showing the elements that are allowed within the head element per the XSD specification.

The XML language will even pull in documentation from the XSD and will display it in completion list description tips and quick info.

HtmlEditor2

In this screenshot we’ve pressed Tab to auto-complete the script tag and then typed >.  The end </script> was automatically inserted for us.

However now you’ll note a red squiggle under the script tag name.  If you look in the Error List tool window, you’ll see a validation error that was found per the XSD data.  The XML syntax language in the Web Languages Add-on automatically parses and performs validation whenever you change the document.  SyntaxEditor allows all of this to occur in a worker thread so that the UI is never bogged down.

HtmlEditor3

In this screenshot we’ve entered the type attribute to satisfy validation.  And we’ve moved the mouse to hover over the title tag.  An IntelliPrompt quick info tip displays showing the element’s name, namespace, documentation, and ancestor hierarchy.

Completion lists work for elements, element values (for simple types), attributes, attribute values, and more.  Likewise, quick info will display for elements and attributes.

All the functionality above can be created in a few lines of code using the Web Languages Add-on that will ship along side of WPF Studio 2010.2.

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

Related posts

Actipro SyntaxEditor for WPF and Editors for WPF are released SyntaxEditor for WPF with a custom theme loaded Yesterday evening we published WP...Progress on a SyntaxEditor Web Languages Add-on for WPF and SilverlightAs mentioned in a previous post we have been working very hard on developing a custom grammar and AS...The future of WPF, Silverlight, and HTML5 - Are they dead?As I’m sure you are all aware, last week’s PDC 2010 conference set off a firestorm of tweets and new...

Comments

August 26, 2010 at 09:22  

trackback

SyntaxEditor for WPF - HTML editor sample preview

You've been kicked (a good thing) - Trackback from DotNetKicks.com

DotNetKicks.com

August 27, 2010 at 01:40  

trackback

FeedBurner blog post RSS feed issue fixed

FeedBurner blog post RSS feed issue fixed

The Actipro Blog - WPF and WinForms Development

August 28, 2010 at 03:58  

Jesper

As a way of testing your parser framework, have you tried implementing the HTML5 tokenizing and parsing behavior?It's a good example of a complex real-world application with an open specification and could also provide some good tests for what the "intelliprompt" should show.

Jesper Sweden

August 29, 2010 at 06:34  

Bill Henning (Actipro)

Not yet, and as a side note we still need to work on features that would allow language merging with the parser, which are scenarios that would be used with a real dedicated HTML parser.  Those will likely be things we'll work on after the first WPF Studio 2010.2 release.

Bill Henning (Actipro) United States

August 29, 2010 at 13:06  

James

This looks wonderful Bill. Do you anticipate porting this to the Silverlight SyntaxEditor as well?

Cheers,
James

James Canada

August 29, 2010 at 15:44  

Bill Henning (Actipro)

Thanks!  We may not port it to Silverlight at this time, the main reason being that it relies heavily on the XmlSchemaSet and related classes that are part of the .NET framework, and they have been left out of Silverlight.  Without that framework, we cannot drive any of the automated IntelliPrompt features.

If we did port the XML syntax language, it would still provide an AST, code outlining, and some validation.  But there wouldn't be any automated IntelliPrompt until Microsoft makes the XmlSchemaSet functionality available there.  The core features may make it worth the effort though.

What do you think?  Would you still like to see it on Silverlight, even if the automated IntelliPrompt can't be included at this time?

Bill Henning (Actipro) United States

August 29, 2010 at 16:16  

James

It would certainly still be useful (at least in my case) as generating an AST for the XML will be an excellent entry point for my own domain specific validation engine.

Cheers,
James

James Canada

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