Documentation home
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
TutorialsFind out what the library does and make the first call.
ChangelogRead the release history and version notes.
LicensesCheck the terms and third party notices.
Source codeBrowse the repository and issue tracker.
PackageView the published package.
ContactAsk a question or report a problem.
Install
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 |
|---|---|
| Platforms | Windows and macOS |
| Prerequisite | Node.js 10.5.2 to 12.13.0 tested |
| Distribution | NuGet package |