Skip to content

Syntax Highlighting (Code Colorization) for MarkDig

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE.txt
Notifications You must be signed in to change notification settings

RichardSlater/Markdig.SyntaxHighlighting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub issues GitHub forks GitHub stars GitHub license AppVeyor NuGet NuGet

Syntax Highlighting extension for Markdig

An extension that adds Syntax Highlighting, also known as code colourization, to a Markdig pipeline through the power of ColorCode. By simply adding this extension to your pipeline, you can add colour and style to your source code:

Demonstration

Before

namespace Amido.VersionDashboard.Web.Domain {
    public interface IConfigProvider {
        string GetSetting(string appSetting);
    }
}

After

namespace Amido.VersionDashboard.Web.Domain {
    public interface IConfigProvider {
        string GetSetting(string appSetting);
    }
}

Usage

Simply import the nuget package, add a using statement for Markdig.SyntaxHighlighting and add to your pipeline:

var pipeline = new MarkdownPipelineBuilder()
    .UseAdvancedExtensions()
    .UseSyntaxHighlighting()
    .Build();

Future Updates

  • Upgrade ColorCode to support .NET Core / .NET Standard.
  • Upgrade Markdig.SyntaxHighlighting to support .NET Core / .NET Standard.
  • Add support for Code Coverage
  • Add support for Dependency Checking

About

Syntax Highlighting (Code Colorization) for MarkDig

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •