Avalonia.Controls.Markdown.ColorCode
12.3.0
Prefix Reserved
See the version list below for details.
dotnet add package Avalonia.Controls.Markdown.ColorCode --version 12.3.0
NuGet\Install-Package Avalonia.Controls.Markdown.ColorCode -Version 12.3.0
<PackageReference Include="Avalonia.Controls.Markdown.ColorCode" Version="12.3.0" />
<PackageVersion Include="Avalonia.Controls.Markdown.ColorCode" Version="12.3.0" />
<PackageReference Include="Avalonia.Controls.Markdown.ColorCode" />
paket add Avalonia.Controls.Markdown.ColorCode --version 12.3.0
#r "nuget: Avalonia.Controls.Markdown.ColorCode, 12.3.0"
#:package Avalonia.Controls.Markdown.ColorCode@12.3.0
#addin nuget:?package=Avalonia.Controls.Markdown.ColorCode&version=12.3.0
#tool nuget:?package=Avalonia.Controls.Markdown.ColorCode&version=12.3.0
Avalonia.Controls.Markdown.ColorCode
Optional ColorCode-based syntax highlighting integration for Avalonia.Controls.Markdown. Provides a ColorCodeHighlighter that enables syntax highlighting in Markdown code blocks.
Quick Start
var highlighter = new ColorCodeHighlighter();
myMarkdownControl.CodeHighlighter = highlighter;
Or in XAML:
<Window.Resources>
<colorCode:ColorCodeHighlighter x:Key="codeHighlighter" />
</Window.Resources>
<Window.Styles>
<Style Selector="MarkdownCodeBlock">
<Setter Property="Highlighter" Value="{StaticResource textMateHighlighter}"/>
</Style>
</Window.Styles>
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)
- ColorCode.Core (>= 2.0.15)
- Markdig.Signed (>= 1.0.0)
-
net8.0
- Avalonia (>= 12.0.3)
- Avalonia.Controls.Markdown (>= 12.3.0)
- ColorCode.Core (>= 2.0.15)
- Markdig.Signed (>= 1.0.0)
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 | 47 | 9/10/2026 |
| 12.3.0 | 45 | 9/11/2026 |
| 12.2.3 | 166 | 8/20/2026 |
| 12.2.2 | 169 | 7/31/2026 |
| 12.2.1 | 113 | 7/29/2026 |
| 12.2.0 | 108 | 7/23/2026 |
| 12.1.5 | 120 | 6/29/2026 |
| 12.1.4 | 123 | 6/22/2026 |
| 12.1.3 | 132 | 6/9/2026 |
| 12.1.2 | 124 | 6/2/2026 |
| 12.1.1 | 117 | 5/14/2026 |
| 12.1.0 | 115 | 5/12/2026 |
| 12.0.0 | 340 | 4/7/2026 |
| 11.3.5 | 146 | 3/3/2026 |
| 11.3.4 | 530 | 12/4/2025 |
| 11.3.3 | 248 | 12/3/2025 |
| 11.3.2 | 245 | 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.
### Features
- `ColorCodeHighlighter` takes a palette: a new `StyleDictionary` constructor parameter and a settable `Styles` property, matching `TextMateHighlighter.Theme`. It defaulted to ColorCode's light palette with no way to choose another, so an application running the dark variant of the markdown theme got near-black token colours on a dark code-block background. Set `Styles` to `StyleDictionary.DefaultDark` there.