Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 709 Bytes

File metadata and controls

21 lines (13 loc) · 709 Bytes

Syntax Highlighter for MarkdownToPdf Library

Syntax highlighter plugin for MarkdownToPdf Library using PrismSharp.

Usage

var pdf = new MarkdownToPdf();
pdf.PluginManager.Add(new HighlighterPlugin { ThemeName = ThemeNames.SolarizedDarkAtom });
pdf.Add("# Highlighting\r\n\r\n```csharp\r\nfor (var i = 0; i < 10; i++) { ; } // comment\r\n```");
pdf.Save("out.pdf");

Installation

The library is available as a NuGet package:

License

This software is released under the MIT license.