Dirkster.HL 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dirkster.HL --version 1.0.2
NuGet\Install-Package Dirkster.HL -Version 1.0.2
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="Dirkster.HL" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dirkster.HL --version 1.0.2
#r "nuget: Dirkster.HL, 1.0.2"
#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.
// Install Dirkster.HL as a Cake Addin
#addin nuget:?package=Dirkster.HL&version=1.0.2

// Install Dirkster.HL as a Cake Tool
#tool nuget:?package=Dirkster.HL&version=1.0.2

ThemedHighlightingManager for AvalonEdit

This AvalonEdit extension implements its own highlighting manager that extends the normal way of handling highlighting definitions.

The standard highlighting in AvalonEdit is dependent on the currently viewed type of text (eg C# or SQL) but a highlighting definition designed for a Light WPF theme may look ugly if viewed with a Dark WPF theme, and vice versa. This is why the ThemedHighlightingManager extension associates each highlighting definition with:

  • A type of text (C#, SQL etc) and
  • A WPF Theme (Light, Dark)

This approach is very similar to the implementation in Notepad++ except notepad++ uses a plain xml file to configure a theme whereas the ThemedHighlightingManager uses an XSHTD file to do the same. But at the end of the day its XML in both cases and cloning a highlighting theme from Notepad++ is almost too easy (thats how similar both implementations are).

Assuming that you already use a WPF theming library, such as:

enables an applications author to switch highlighting definitions to a matching color palette whenever the user switches a given WPF theme. See AvalonEditHighlightingThemes and Aehnlich for sample implementations.

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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.4 3,173 4/28/2020
1.0.3 2,364 6/26/2019
1.0.2 537 6/24/2019
1.0.1 553 6/24/2019
1.0.0 653 6/24/2019

Inital release contains 5 highlighting themes (Dark, Light, True Blue-Light, True Blue-Dark, VS 2019-Dark) but you can easily define more themes. Just create a pull request with the XSHTD file at the original project site.