示例#1
0
        public void RubyHighlightTests()
        {
            //Running this forces the definition XML to be validated
            HighlightHelpers.GetHighlightedHtml("Ruby", "__LINE__");

            Assert.Inconclusive();
        }
示例#2
0
        public void DosHighlightTests()
        {
            //Running this forces the definition XML to be validated
            HighlightHelpers.GetHighlightedHtml("DOS", "+");

            Assert.Inconclusive();
        }
        public override void Load(Stream stream)
        {
            var sourceHtml = HighlightHelpers.GetHighlightedHtml(definition, stream);

            var webBrowser = new WebBrowser
            {
                Dock         = DockStyle.Fill,
                DocumentText = sourceHtml
            };

            Controls.Add(webBrowser);
        }
示例#4
0
 private void UpdateView()
 {
     Output.DocumentText = HighlightHelpers.GetHighlightedHtml(Style.Text, Input.Text);
 }