Skip to content
Open core software, built in Singapore Established 2018  /  Five utilities
Jering
Talk to us

Documentation home

Web.SyntaxHighlighters.Prism Jering documentation Open source NuGet package
Documentation menu

A .NET wrapper around Prism, the widely used JavaScript syntax highlighter. Highlighting runs in Node.js, which keeps language support and output consistent with Prism on the web.

Start here

Install

Package Manager
dotnet add package Jering.Web.SyntaxHighlighters.Prism

What it does

A .NET wrapper around Prism, the widely used JavaScript syntax highlighter. Highlighting runs in Node.js, which keeps language support and output consistent with Prism on the web.

  • Highlight source code with a Prism language alias.
  • Validate language aliases before highlighting.
  • Use dependency injection or the StaticPrismService wrapper.
  • Dispose the shared process when the host shuts down.

Requirements

Target framework.NET Standard 2.0 and .NET Framework 4.6.1
PlatformsWindows and macOS
PrerequisiteNode.js 10.5.2 to 12.13.0 tested
DistributionNuGet package

Reference shelf