Exemple #1
0
 public static API_MarkdownSharp showIn_TextArea(this API_MarkdownSharp markdownApi)
 {
     if (markdownApi.TextArea.isNull())
     {
         markdownApi.TextArea = "Markdown Transformation".popupWindow().add_TextArea();
     }
     //var browser = open.webBrowser();
     markdownApi.TextArea.set_Text(markdownApi.LastText_Transformed);
     return(markdownApi);
 }
Exemple #2
0
 public static API_MarkdownSharp showIn_Browser(this API_MarkdownSharp markdownApi)
 {
     if (markdownApi.Browser.isNull())
     {
         markdownApi.Browser = "Markdown Transformation".popupWindow().add_WebBrowser();
     }
     //var browser = open.webBrowser();
     O2Thread.mtaThread(() => markdownApi.Browser.html(markdownApi.LastText_Transformed));
     return(markdownApi);
 }
Exemple #3
0
 public static string text(this API_MarkdownSharp markdownApi)
 {
     return(markdownApi.Text);
 }
Exemple #4
0
 public static API_MarkdownSharp syncWith_TextArea(this API_MarkdownSharp markdownApi, TextBox textBox)
 {
     markdownApi.TextArea = textBox;
     markdownApi.AfterTransform.add(() => markdownApi.showIn_TextArea());
     return(markdownApi);
 }
Exemple #5
0
 public static API_MarkdownSharp syncWith_Browser(this API_MarkdownSharp markdownApi, WebBrowser browser)
 {
     markdownApi.Browser = browser;
     markdownApi.AfterTransform.add(() => markdownApi.showIn_Browser());
     return(markdownApi);
 }
Exemple #6
0
 public static API_MarkdownSharp transform(this API_MarkdownSharp markdownApi)
 {
     markdownApi.LastText_Transformed = markdownApi.Markdown.Transform(markdownApi.Text);
     markdownApi.AfterTransform.invoke();
     return(markdownApi);
 }
Exemple #7
0
 public static API_MarkdownSharp transform(this API_MarkdownSharp markdownApi, string text)
 {
     markdownApi.Text = text;
     return(markdownApi.transform());
 }
Exemple #8
0
 public static string html(this API_MarkdownSharp markdownApi)
 {
     return(markdownApi.transform().LastText_Transformed);
 }
Exemple #9
0
 public static API_MarkdownSharp text(this API_MarkdownSharp markdownApi, string value)
 {
     markdownApi.Text = value;
     return(markdownApi);
 }