A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/RichardSlater/Markdig.SyntaxHighlighting below:

RichardSlater/Markdig.SyntaxHighlighting: Syntax Highlighting (Code Colorization) for MarkDig

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4