Avalonia.Controls.Markdown.TextMate 12.3.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Avalonia.Controls.Markdown.TextMate --version 12.3.0
                    
NuGet\Install-Package Avalonia.Controls.Markdown.TextMate -Version 12.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Avalonia.Controls.Markdown.TextMate" Version="12.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avalonia.Controls.Markdown.TextMate" Version="12.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Avalonia.Controls.Markdown.TextMate" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Avalonia.Controls.Markdown.TextMate --version 12.3.0
                    
#r "nuget: Avalonia.Controls.Markdown.TextMate, 12.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Avalonia.Controls.Markdown.TextMate@12.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Avalonia.Controls.Markdown.TextMate&version=12.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Avalonia.Controls.Markdown.TextMate&version=12.3.0
                    
Install as a Cake Tool

Avalonia.Controls.Markdown.TextMate

Optional TextMate-based syntax highlighting integration for Avalonia.Controls.Markdown. Provides a TextMateHighlighter that enables syntax highlighting in Markdown code blocks using TextMate grammars.

Quick Start

<Window.Resources>
  <textMate:TextMateHighlighter x:Key="codeHighlighter" Theme="LightPlus" />
</Window.Resources>

<Markdown Text="```csharp&#x0a;var x = 1;&#x0a;```"
          CodeHighlighter="{StaticResource codeHighlighter}" />

Or in C#:

var highlighter = new TextMateHighlighter { Theme = "LightPlus" };
myMarkdownControl.CodeHighlighter = highlighter;

Dependencies

  • Avalonia.Controls.Markdown

Documentation

See the documentation for more details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.0.0-rc2 43 2026/9/10
12.3.0 42 2026/9/11
12.2.3 271 2026/8/20
12.2.2 18,569 2026/7/31
12.2.1 108 2026/7/29
12.2.0 9,973 2026/7/23
12.1.5 7,707 2026/6/29
12.1.4 1,668 2026/6/22
12.1.3 115 2026/6/9
12.1.2 347 2026/6/2
12.1.1 270 2026/5/14
12.1.0 158 2026/5/12
12.0.0 508 2026/4/7
11.3.5 12,146 2026/3/3
11.3.4 1,431 2025/12/4
11.3.3 232 2025/12/3
11.3.2 278 2025/11/24

## 12.3.0

Adds to 12.2.3 and removes nothing: every type and member a 12.2.3 build could reference is still there with the same signature, checked against the released packages on every build.

### Notes
- Tracks `CodeHighlighter` becoming a documented extension point: `Highlight` is `protected override` rather than `internal override`, matching the base class's `protected abstract` declaration. `TextMateHighlighter` is sealed, so nothing outside the package can reach the member either way; the change keeps this package a working example of what a third-party highlighter looks like.
- Builds its highlighted line through `DocumentSnapshotBuilder.AddRun` instead of allocating a run draft per token.