예제 #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));
        }
예제 #3
0
        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);
 }