Blism.Core 2.0.0

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

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Blism.Core:

Package Downloads
Blism.Blazor

Adds the Blism syntax highlighter component for Blazor

Blism.Language.Php.Core

Adds Blism language support for PHP

Blism.Language.Bash.Core

Adds Blism language support for Bash

Blism.Language.Dart.Core

Adds Blism language support for Dart

Blism.Language.Yaml.Core

Adds Blism language support for YAML

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 187 12/22/2025

# 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