Example #1
0
        public void Can_render_code()
        {
            var engine = new HighlightJsEngine();
            var result = engine.Run("js", "console.log('test')");

            result.Should().Be("<span class=\"hljs-built_in\">console</span>.log(<span class=\"hljs-string\">'test'</span>)");
        }
Example #2
0
 public CustomHighlightJsEngine()
 {
     _internal = new HighlightJsEngine();
 }