In today's post I'd like to show off another new feature that was added to SyntaxEditor (WPF, Silverlight, and WinRT/XAML platforms) in its 2014.2 version: quote delimiter auto-completion.
Quote Delimiter Auto-Completion
SyntaxEditor already had some great delimiter-related features like delimiter highlighting and delimiter auto-completion for curly braces, square braces, and parentheses. These have been in the product for a while.
We had a number of customers also request that support for quote auto-completion be added to assist with working with strings, and that's what's been added. Quote auto-completion support is now built into the DelimiterAutoCompleter class, with double quote completion enabled by default. Single quote completion can be activated as well but is not enabled by default since some languages use single quotes as single line comment delimiters.
Let's see it in action! Here we are using our new Python add-on language to start typing an author designation:
Next I type a double quote character:
The end double quote is auto-inserted, but after the caret. This allows me to type the string content directly in without having to use arrow keys.
Now that I've typed in the string content, I type the double quote again. SyntaxEditor knows that it's the quote that was recently auto-completed, so it effectively overwrites the existing quote instead of adding another double quote. The caret ends up after the string, as expected.
Summary
The quote delimiter auto-completion features were added in the 2014.2 version of our WPF, Silverlight, and WinRT/XAML controls.
They also have been pre-configured to automatically work in these premium SyntaxEditor add-on languages: C#, VB, Python, JavaScript, and JSON. They can easily be added to your own custom languages as well.