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

            Assert.Inconclusive();
        }
Esempio n. 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);
        }
Esempio n. 4
0
 private void UpdateView()
 {
     Output.DocumentText = HighlightHelpers.GetHighlightedHtml(Style.Text, Input.Text);
 }