Avalonia.Controls.Markdown.TextMate
12.3.0
Prefix Reserved
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
<PackageReference Include="Avalonia.Controls.Markdown.TextMate" Version="12.3.0" />
<PackageVersion Include="Avalonia.Controls.Markdown.TextMate" Version="12.3.0" />
<PackageReference Include="Avalonia.Controls.Markdown.TextMate" />
paket add Avalonia.Controls.Markdown.TextMate --version 12.3.0
#r "nuget: Avalonia.Controls.Markdown.TextMate, 12.3.0"
#:package Avalonia.Controls.Markdown.TextMate@12.3.0
#addin nuget:?package=Avalonia.Controls.Markdown.TextMate&version=12.3.0
#tool nuget:?package=Avalonia.Controls.Markdown.TextMate&version=12.3.0
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
var x = 1;
```"
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 | Versions 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. |
-
net10.0
- Avalonia (>= 12.0.3)
- Avalonia.Controls.Markdown (>= 12.3.0)
- TextMateSharp (>= 2.0.3)
- TextMateSharp.Grammars (>= 2.0.3)
-
net8.0
- Avalonia (>= 12.0.3)
- Avalonia.Controls.Markdown (>= 12.3.0)
- TextMateSharp (>= 2.0.3)
- TextMateSharp.Grammars (>= 2.0.3)
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 | 9/10/2026 |
| 12.3.0 | 38 | 9/11/2026 |
| 12.2.3 | 265 | 8/20/2026 |
| 12.2.2 | 18,421 | 7/31/2026 |
| 12.2.1 | 108 | 7/29/2026 |
| 12.2.0 | 9,973 | 7/23/2026 |
| 12.1.5 | 7,706 | 6/29/2026 |
| 12.1.4 | 1,668 | 6/22/2026 |
| 12.1.3 | 115 | 6/9/2026 |
| 12.1.2 | 347 | 6/2/2026 |
| 12.1.1 | 270 | 5/14/2026 |
| 12.1.0 | 158 | 5/12/2026 |
| 12.0.0 | 508 | 4/7/2026 |
| 11.3.5 | 12,145 | 3/3/2026 |
| 11.3.4 | 1,431 | 12/4/2025 |
| 11.3.3 | 232 | 12/3/2025 |
| 11.3.2 | 278 | 11/24/2025 |
## 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.