示例#1
0
        public string CompileForHtml(Form form, string text, HelpComponents helpComponents,
                                     TopicCompilerSettingsInterface topicCompilerSettings)
        {
            TopicCompiler topicCompiler = new TopicCompiler(form, helpComponents, _preprocessedTopic, topicCompilerSettings);

            return(topicCompiler.CompileForHtml(text));
        }
示例#2
0
        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);
        }
示例#4
0
 public string CompileForHtml(string[] lines,HelpComponents helpComponents,TopicCompilerSettingsInterface topicCompilerSettings)
 {
     TopicCompiler topicCompiler = new TopicCompiler(helpComponents,_preprocessedTopic,topicCompilerSettings);
     return topicCompiler.CompileForHtml(lines);
 }