Nova.Avalonia.UI.CodeViewer 1.0.0

dotnet add package Nova.Avalonia.UI.CodeViewer --version 1.0.0
                    
NuGet\Install-Package Nova.Avalonia.UI.CodeViewer -Version 1.0.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="Nova.Avalonia.UI.CodeViewer" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nova.Avalonia.UI.CodeViewer" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Nova.Avalonia.UI.CodeViewer" />
                    
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 Nova.Avalonia.UI.CodeViewer --version 1.0.0
                    
#r "nuget: Nova.Avalonia.UI.CodeViewer, 1.0.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 Nova.Avalonia.UI.CodeViewer@1.0.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=Nova.Avalonia.UI.CodeViewer&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Nova.Avalonia.UI.CodeViewer&version=1.0.0
                    
Install as a Cake Tool

Nova.Avalonia.UI.CodeViewer

Nova.Avalonia.UI.CodeViewer displays read-only source code with syntax highlighting, line numbers, copying, and an optional multi-document drawer. It is packaged separately so applications that do not show source code avoid the AvaloniaEdit and TextMate dependencies.

Requires Avalonia 12.1.1 or later in the Avalonia 12 release line.

Nova Avalonia code viewer

Install

dotnet add package Nova.Avalonia.UI.CodeViewer

Register the Code Viewer styles after your Avalonia base theme:

<Application.Styles>
    <FluentTheme />
    <StyleInclude Source="avares://Nova.Avalonia.UI.CodeViewer/Themes/Controls.axaml" />
</Application.Styles>

Declare the namespace and display source inline:

<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:codeViewer="clr-namespace:Nova.Avalonia.UI.CodeViewer;assembly=Nova.Avalonia.UI.CodeViewer">
    <codeViewer:CodeViewer Code="{Binding SampleCode}"
                           Language="XAML"
                           MinHeight="220" />
</UserControl>

See the Code Viewer documentation for multi-document drawers, resources, accessibility, and localization.

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
1.0.0 59 9/3/2026