DumpHTML() to write Custom HTML to the Resultwindow
Would be a great addition imho.
This would enable the user to generate quick'n'dirty reports, add links for directing to (filesystemfolders/websites)
or mailto links to send an email
Call Util.RawHtml, passing in either a string or an XElement.
-
Garry Lindsay commented
I need the html I create in a linqpad string variable actually open IE/browser when I run my program in LinqPad
Anyway to do this without having to copy the HTML from the results window and save as a file and open that file with IE? -
codekaizen commented
Note that the result needs to be sent to "Dump()": e.g. `Util.RawHtml("<hr />").Dump()`;
-
James N commented
Wow, that was way too easy. Thanks, Joe!
-
James N commented
I'd love this as well, as a means to quickly see the rendered HTML for my custom Html extension methods for ASP.NET MVC.
-
It might also be useful if you could include HTML within a query:
from c in Customers
select new { c.Name, URL = new RawHtml ("<a href = '" + c.URL + "'/>) }