• 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 - Context-based custom classification

January 8, 2009 at 8:02 PM
by Bill Henning (Actipro)

One highly requested feature over the years has been to allow a way to customize or alter the highlighting styles used to syntax highlight text on the fly.  Meaning the language uses its lexical parser to provide default highlighting, and you can override it before it is displayed.

With our design of SyntaxEditor for WPF, this is now possible.

The syntax highlighting model of SyntaxEditor for WPF by default uses lexical parsing from the current language to classify text.  You can have your own custom classifiers attached that layer on top of the language results.  You can examine the language’s classification results, and add your own classifications that override them.  Let me illustrate…

ClassComments

SyntaxEditor with a custom classifier highlighting the word Actipro whenever it appears in documentation comments

In the screenshot above we have a C# language loaded.  You can see keywords, comments, etc. highlighted normally.  But note we also have a custom classifier attached.  This classifier looks at the results of the language-based classification and if it sees the word Actipro within a documentation comment, it adds its own classification, which in turn makes that text red.  So in the sample, you can see Actipro used a couple of other places in the text but it’s only highlighted for documentation comments.

ClassIdentifier

Identifiers named Actipro also highlighted

 

In this next screenshot, you’ll notice the identifier named Actipro is also highlighted.  In the QuickStart we have a CheckBox that has been checked, which told the custom classifier to look at identifiers too.

The neat thing about the classification system is that it’s virtualized and is only classifying text that displayed onscreen.

Anyhow the point of this feature is that now we have a way for you to intercept, and potentially completely alter how syntax highlighted text is presented to the end user.

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

Related posts

SyntaxEditor for WPF - Need input on highlighting style configurationSorry we haven’t made any new SyntaxEditor for WPF posts recently.  We’ve been hamm...SyntaxEditor for WPF - Highlighting style configuration part 2Thanks for your comments on this post and via email on yesterday’s post about getting input on...Actipro SyntaxEditor for WPF and Editors for WPF are released SyntaxEditor for WPF with a custom theme loaded Yesterday evening we published WP...
Comments are closed
Copyright © 1999-2013 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us