Пример #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);
 }