MarkdownSharp&安培; GitHub的语法C#代码 [英] MarkdownSharp & GitHub syntax for C# code
问题描述
有没有办法让MarkdownSharp(我使用的是的NuGet包)来处理 GitHub风格降价(GFM)'和C#代码,尤其是语法高亮其中(在GFM)是这样写的:
Is there a way to get MarkdownSharp (I'm using the NuGet package) to handle 'GitHub flavored Markdown (GFM)' and especially syntax highlighting of c# code, which (in GFM) is written like this:
```c#
//my code.....
```
所以,如果我降价格式化的内容传递给MarkDownSharp,containg一个C#代码块(如上)我想它生成语法高亮的HTML为C#代码。有任何想法吗?我知道我可以使用支持的4个空格来表示一个代码块,但同样,我在寻找一个解决方案,得到它的支持GitHub风格降价。
So, if I pass Markdown formatted content to MarkDownSharp, containg a C# code block (as above) I want it to generate syntax highlighted html for that c# code. Any ideas? I know I can use the supported 4 spaces to indicate a code block, but again, I'm seeking a solution for getting it to support GitHub flavored Markdown.
推荐答案
下面的结果: https://github.com/ danielwertheim /奇异果/维基/使用与 - Asp.Net-MVC
//ð
这篇关于MarkdownSharp&安培; GitHub的语法C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!