SyntaxEditor - Incremental Search Result Highlights

by Avatar Bill Henning (Actipro)
Tuesday, November 12, 2013 at 1:51pm

PostBannerSyntaxEditorDevNotes

In our last post, we announced that incremental search features were coming to SyntaxEditor for WPF, WinRT/XAML, and Silverlight in the next maintenance release.

We are working on an ancillary feature to that, which we hope to also have completed soon.  This feature automatically highlights matching results when doing an incremental search.

How It Works

To start incremental search mode, press Ctrl+I and start typing some characters. The characters will be accumulated into a find text string and used to search the document for the next instance of the find text, which will be selected.  For this sample, I have pressed Ctrl+I and then "r".

SearchHighlights1

All of the instances of the letter r in the editor have been highlighted.  Now I will continue to type out the full word "random".

SearchHighlights2

All of the instances of the word random are now highlighted.  The first instance is selected.  Pressing Ctrl+I at this point would move the selection to the next highlighted instance..

Summary

The search result highlights help the end user quickly see where matches are without the need to cycle through them.  We hope to have this feature in the next maintenance release.

TaskDownload TaskLiveDemo TaskBuyNow

SyntaxEditor - Incremental Search

by Avatar Bill Henning (Actipro) - 1 comment
Monday, November 4, 2013 at 9:57am

PostBannerSyntaxEditorDevNotes

Another new feature is coming to SyntaxEditor for WPF, WinRT/XAML, and Silverlight in the next maintenance release: incremental search.

What is Incremental Search?

Incremental search is a way for the end user to quickly search for text in a document without needing to interact with search dialogs or panes.  With a couple keyboard strokes, the end user can instantly start searching for text.

How It Works

To start incremental search mode, press Ctrl+I and start typing some characters. The characters will be accumulated into a find text string and used to search the document for the next instance of the find text, which will be selected.

IncrementalSearch

Press Ctrl+I to move to the next match, or Ctrl+Shift+I to move to the previous match. Continue typing characters to append to the find text. Backspace can be used to remove characters from the find text. Esc can be used to deactivate incremental search mode.

The WPF and WinRT versions are capable of showing custom cursors while incremental search is active, enabling the end user to have a visual indicator of the current mode.  Silverlight unfortunately doesn't allow for custom mouse cursors.  It is recommended that all platforms also show some sort of status bar indicator.  In the screenshot above, you can see how the StatusBar is updated as I type to show the current find text.

Summary

Incremental search is already available in SyntaxEditor for WinForms and will now be in the other SyntaxEditor platforms after the next maintenance releases.

TaskDownload TaskLiveDemo TaskBuyNow

Visual Studio 2013 Supported

by Avatar Bill Henning (Actipro)
Friday, November 1, 2013 at 2:39pm

VS2013BlogPostBanner

We just wanted to post a quick reminder that all of our latest versions of WPF, WinRT/XAML, Silverlight, and WinForms controls support the new Visual Studio 2013 version.

VS2013Designer

If you haven't tried VS 2013 yet, we urge you to download it from Microsoft's site.  It features a more refined design than VS 2012, and is a pleasure to use.  In particular, we love using the new Team Explorer tool window and peek definition editor feature.

Also, in case you haven't heard, Microsoft is hosting a Visual Studio 2013 Virtual Launch event on November 13.  The event will consist of a keynote speech and they will be going over the new features in subsequent technical sessions.  Be sure to check it out.

SyntaxEditor Adding Multi-Line Editing Features

by Avatar Bill Henning (Actipro) - 2 comments
Friday, October 18, 2013 at 9:58am

PostBannerSyntaxEditorDevNotes

We've got an exciting new SyntaxEditor feature to announce that's been desired by a number of customers.  And best of all, it's coming to all our supported platforms:  WPF, Silverlight, WinRT/XAML (coming very shortly), and WinForms.

The new feature is the ability to edit multiple lines when a block selection is active, also known as column editing.  First, let's review block selections.

Block Selection

Block selection occurs when you hold Shift+Alt and press the arrow keys.  For instance if you press the Shift+Alt+Down shortcut a couple times, you create a block selection that in previous versions would end up selecting the entire three lines since its selection was zero-width (no real characters were selected).  If you then pressed Shift+Alt+Right, it would make a rectangular selection that is three lines tall and one character wide.

At this point you could extend the selection further and then copy it, move to a new location in the document, paste it, and the entire block would be pasted in place there.  This is a very handy editing feature in some scenarios.

Changes to Block Selection

In the next SyntaxEditor releases, we have altered how things work when you have the zero-width block selection.  Again this is the scenario where you start with no selection and press Shift+Alt+Down a couple times.  In the updated code, we now no longer show selection over all the lines and instead, render a thin line that displays where the block selection is.

BlockEditing1

In the screenshot above, you can see the blue lines that indicate the location of the zero-width block selection.

BlockEditing2

If we extend the block selection to the right, it become a rectangle that covers the class attributes.  We now can delete that by pressing Del.

Multi-Line Editing

Now let's get onto a demonstration of the new features coming for multi-line editing.

BlockEditing3

Again, I've created a zero-width block selection and now I'll start typing.

BlockEditing4

I've typed in the div tag again but I only did it once.  It automatically entered the characters I typed on each line that was part of the zero-width block selection.  That's pretty neat!

Not only does normal character typing work while doing multi-line editing, but Tab (indent), Shift+Tab (outdent), Del (delete next character), Backspace (delete previous character), Shift+Del (delete to next word start), and Shift+Backspace (delete to previous word start) also do.  For instance if I press Backspace to delete the last character I typed, the result is this:

BlockEditing5

The last character I typed (a >) is now gone in all three lines.

Summary

These sorts for multi-line editing features can really help increase productivity in a number of editing scenarios.  They will be included in the next releases of our WPF, Silverlight, and WinForms controls.  And they will be included in the upcoming WinRT version of SyntaxEditor as well.

Silverlight Controls 2013.2 Build 161 Released

by Avatar Bill Henning (Actipro)
Monday, October 14, 2013 at 5:21am