Logo FluentUI

SyntaxView QML Type

A read-only code viewer with syntax highlighting. More...

Import Statement: import FluentUI.Controls 1.0

Properties

Detailed Description

SyntaxView displays source code with syntax highlighting in a read-only view. It supports customizable formatting and font settings, making it suitable for displaying code samples and log output.

Property Documentation

font : font

The font used for displaying the code text. A monospace font is recommended for code display.

format : var

The formatting configuration that defines how different syntax elements are highlighted, including colors, font styles, and other visual attributes for keywords, strings, comments, and other token types.

text : string

The source code text to display.