Blism.Core
2.0.0
dotnet add package Blism.Core --version 2.0.0
NuGet\Install-Package Blism.Core -Version 2.0.0
<PackageReference Include="Blism.Core" Version="2.0.0" />
<PackageVersion Include="Blism.Core" Version="2.0.0" />
<PackageReference Include="Blism.Core" />
paket add Blism.Core --version 2.0.0
#r "nuget: Blism.Core, 2.0.0"
#:package Blism.Core@2.0.0
#addin nuget:?package=Blism.Core&version=2.0.0
#tool nuget:?package=Blism.Core&version=2.0.0
Blism
Blism is a simple syntax highlighter library for Blazor.

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 | Versions 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. |
-
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