FearTheCowboy.Pygments 2.0.2.2

dotnet add package FearTheCowboy.Pygments --version 2.0.2.2                
NuGet\Install-Package FearTheCowboy.Pygments -Version 2.0.2.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FearTheCowboy.Pygments" Version="2.0.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FearTheCowboy.Pygments --version 2.0.2.2                
#r "nuget: FearTheCowboy.Pygments, 2.0.2.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FearTheCowboy.Pygments as a Cake Addin
#addin nuget:?package=FearTheCowboy.Pygments&version=2.0.2.2

// Install FearTheCowboy.Pygments as a Cake Tool
#tool nuget:?package=FearTheCowboy.Pygments&version=2.0.2.2                

The Pygments for .NET library exposes two properties and four methods in the Pygments.Highlighter class

public static IEnumerable<Lexer> Lexers; //  all the language lexers available

public static IEnumerable<string> Styles; // all the Styles available


public string HighlightToBBCode( ... )
public string HighlightToRTF( ... )
public string HighlightToHtml( ... )
public string HighlightToLatex( ... )


Example:


using System.IO;

namespace test {
   class Program {
       static void Main(string[] args)
       {
           var highlighter = new Pygments.Highlighter();
           var src = File.ReadAllText(@"program.cs");
           File.WriteAllText("output.html", highlighter.HighlightToHtml(src, "c#", "vs", highlightLines: "7 8 9 10"));
       }
   }
}

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.2.2 2,197 7/22/2015
1.0.4.14 1,995 7/22/2015

Updated to pygments source v1.6