Blism.Language.CSharp.Core 3.0.0

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

Blism

Blism is a simple syntax highlighter library for Blazor.

Screenshot

Installation

Install the package from NuGet:

dotnet add package Blism.Language.CSharp # Repeat for other languages

Usage

<CSharpSyntaxHighlighter Code="@SourceCode"/>

Supported languages

  • C#
  • Dart
  • YAML
  • Bash
  • PHP

Want to add more? See Languages to add and CONTRIBUTING.md

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Product Compatible and additional computed target framework versions.
.NET 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 (3)

Showing the top 3 NuGet packages that depend on Blism.Language.CSharp.Core:

Package Downloads
Blism.Language.CSharp.Blazor

Adds the Blism Blazor component for C#

Blism.Bundle.Languages

Bundles all available Blism languages

Blism.Language.CSharp.Wpf

Adds the Blism WPF component for C#

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 101 1/16/2026

# 3.0.0
- Added `Blism.Bundle.Languages.Blazor` and `Blism.Bundle.Languages` packages
- BREAKING: renamed `YamlStyleMapper` to `YamlTokenStyleMapper`
- Added support for WPF and added controls for all available languages
# 2.0.0
- Updated to .NET 10
- BREAKING: Reorganized packages:
- `Blism.Core` is a pure .NET package, no Blazor dependency
- `Blism.Blazor` provides Blazor infrastructure
- `Blism.Language.*` is now `Blism.Language.*.Blazor`
- BREAKING: Themes are now decoupled from Blazor and the language
- Theme is now a required parameter for `SyntaxHighlighter`
- Languages must provide a mapping from their tokens to style tokens
# 1.3.3
- Updated to .NET 9
- Added support for tokenizing PHP
- Added dark theme for PHP
- Added `PhpSyntaxHighlighter` component
# 1.3.2
- Noop release
# 1.3.1
- Fix parsing of unquoted URLs in Bash
# 1.3.0
- Added `Style` parameter to all `SyntaxHighlighter` components
# 1.2.4
- Noop release
# 1.2.3
- Noop release
# 1.2.2
- Noop release
# 1.2.1
- Noop release
# 1.2.0
- Added `BashSyntaxHighlighter` component
- Added `CSharpSyntaxHighlighter` component
- Added `DartSyntaxHighlighter` component
- Added `YamlSyntaxHighlighter` component
# 1.1.0
- Added support for tokenizing Bash
- Added dark theme for Bash
- Made highlighter methods virtual so they can be overridden
# 1.0.0
- Initial release
- Added support for tokenizing C#, Dart and YAML
- Added dark themes for C#, Dart and YAML
- Added a `SyntaxHighlighter` blazor component