Version

Syntax Highlighting (xamSyntaxEditor)

Topic Overview

Purpose

This topic provides information about text colorization, based on the TextDocument’s associated language.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

In this topic, you will find information to help you better understand the xamSyntaxEditor’s functions.

This topic covers the text editing capabilities of the xamSyntaxEditor control from both the developer and user’s perspective.

Introduction

Introduction to Syntax Highlighting

The xamSyntaxEditor™ supports syntax highlighting, which are visual cues for interpreting the text shown in the editor. Interpreting the manner in which various parts of the text is a function of the language set in the Language property of the TextDocument. The syntax-highlighting feature uses text colorization for different text parts (for example. comments, keywords, etc …). Errors are rendered highlighted and with squiggly underlines to help identify text that is not complying within the language syntax rules.

There are several predefined languages supported in the TextDocument assembly:

The following screenshot shows the xamSyntaxEditor control displaying C# code with syntax highlighting applied based on the C# language:

xamSyntaxEditor Highlight.png

The following topics provide additional information related to this topic.

Topic Purpose

This topic lists the languages supported by the xamSyntaxEditor™ and shows you how to use each of them.

This topic provides information on how to change the colors and other appearance attributes assigned to language elements by the xamSyntaxEditor .

This topic provides an overview of the xamSyntaxEditor control’s error reporting functionality and shows how to configure and work with the control.