C#/WPF项目的Markdown(MarkdownSharp) [英] Markdown for C#/WPF Project (MarkdownSharp)
问题描述
我做了一些发现,发现有一个项目 markdown sharp ,该项目已被堆栈使用溢出?
i did some finding and found theres a project markdown sharp which is used by stack overflow?
C#的开源实现 Markdown处理器,在 堆栈溢出.
Open source C# implementation of Markdown processor, as featured on Stack Overflow.
所以无论如何,我下载了它.但是我该如何使用呢?如果可能,是否有任何代码示例或教程?没有人可以帮助我开始使用该Google代码网站.
so anyway, i downloaded it. but how do i use it? if possible any code samples or tutorials? theres none to get me started in that google code site.
推荐答案
ah.我找到了答案.
ah. i found the answer.
Markdown markdown = new Markdown();
markdown.Transform(txtEditor.Text);
docs:Markdown.cs
docs: Markdown.cs
/// <summary>
/// Transforms the provided Markdown-formatted text to HTML;
/// see http://en.wikipedia.org/wiki/Markdown
/// </summary>
...
public string Transform(string text) { ... }
我通过阅读内联文档发现了这一点.在php中,网络将其称为phpDoc,但是在C#中,我想知道它叫什么.
i found out abt this reading the inline docs. in php, web call it phpDoc but in C# i wonder whats it called.
这篇关于C#/WPF项目的Markdown(MarkdownSharp)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!