Skip to content

Syntax highlighting plugin for MarkdownToPdf based on PrismSharp

Notifications You must be signed in to change notification settings

tkubec/MarkdownToPdf.SyntaxHighlighter

Repository files navigation

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.

About

Syntax highlighting plugin for MarkdownToPdf based on PrismSharp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages