public string CompileForHtml(Form form, string text, HelpComponents helpComponents, TopicCompilerSettingsInterface topicCompilerSettings) { TopicCompiler topicCompiler = new TopicCompiler(form, helpComponents, _preprocessedTopic, topicCompilerSettings); return(topicCompiler.CompileForHtml(text)); }
public string CompileForHtml(CSPro.Logic.Colorizer colorizer, string text, HelpComponents helpComponents, TopicCompilerSettingsInterface topicCompilerSettings) { TopicCompiler topicCompiler = new TopicCompiler(colorizer, helpComponents, _preprocessedTopic, topicCompilerSettings); return(topicCompiler.CompileForHtml(text)); }
private void DisplayTopic(Preprocessor.TopicPreprocessor preprocessedTopic, string topicText = null) { TopicCompiler topicCompiler = new TopicCompiler(_helpComponents, preprocessedTopic, _topicCompilerSettings); if (topicText == null) { topicText = File.ReadAllText(preprocessedTopic.Filename); } string html = topicCompiler.CompileForHtml(topicText); webBrowser.DocumentText = html; _lastDisplayedPreprocessedTopic = preprocessedTopic; labelTopicFilename.Text = Path.GetFileName(_lastDisplayedPreprocessedTopic.Filename); }
public string CompileForHtml(string[] lines,HelpComponents helpComponents,TopicCompilerSettingsInterface topicCompilerSettings) { TopicCompiler topicCompiler = new TopicCompiler(helpComponents,_preprocessedTopic,topicCompilerSettings); return topicCompiler.CompileForHtml(lines); }