WPF Syntax Editor
The Syntax Editor, built on top of our new Syntax Parsing Engine, is a powerful text editing control that provides a similar experience to the Microsoft® Visual Studio® code editor. Use it to apply a set of language-specific grammatical rules to highlight language constructs and error information if the text does not conform to the syntax rules of the language.
WPF 샘플 다운로드Editing Support
The Syntax Editor has advanced editing capabilities such as clipboard support, unlimited undo and redo, drag and drop, line numbers, as well as character and line selections.
Syntax Highlighting
The Syntax Editor gives to the user visual cues (such as colorization) on how the text is interpreted so that comments, keywords, and language-specific entities can be easily differentiated. This includes support for multiple font styles in a single document.
Custom Language Support
Out-of-the-box support for common coding languages such as C#, VB, and SQL ships with the Syntax Editor. It is designed to be extensible so that other languages, including any proprietary languages, can be created and used by devising EBNF-like grammar definition files. In support of a subset of the T-SQL language, Syntax Editor gives visual cues to the user on the interpretation of text so comments, keywords, and language-specific entities can be easily differentiated.
Split Views
The Syntax Editor supports both end-user and programmatic division of the editor into two separate views for easier editing. Horizontal and vertical splits are both supported.
Custom Element Styling
Syntax Editor enables customization of editing elements without re-templating. Provide a built-in line number margin and create custom margins that can be placed in any of the four margin areas of the xamSyntaxEditor control. Manipulate the appearance of editor parts such as the caret, line number margin, active and inactive selections, foreground, backgrounds, font size and family, and more. You control the colorization of text (syntax highlighting) based on a language's syntax and grammar rules.