Home

Util.RawHtml and whitespaces

edited May 2012
Hi guys,
It seems that Util.RawHtml will add formatting to the output of the provided XML.
The problem here is, that I want to display syntax highlighted code, which is contained in a <pre>. [1]
Because of the formatting, the output looks rather weird (the pre-tag will retain the whitespaces that were introduced by the XML formatting)
I would suggest to add an optional parameter to RawHtml, to tell LinqPad to use:
xml.ToString(SaveOptions.DisableFormatting)
Or simply always use SaveOptions.DisableFormatting for RawHtml.

btw, I am using the current Beta (4.42.01)

[1] If you found this thread searching for syntax highlighting in LinqPad, I am using ColorCode http://colorcode.codeplex.com/

Comments

Sign In or Register to comment.