1
Vote

Copy Code as Html with embedded CSS doesn't work

description

If I select C# and "Embed Css" in "Copy Code as Html" dialog, then it gives me error:
 
System.ArgumentNullException: Value cannot be null.
Parameter name: stream
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(Stream stream)
at Manoli.Utils.CSharpFormat.SourceFormat.GetCssString() in C:\Users\jeffrey\Documents\Visual Studio 2008\Projects\MiniCSharpLab\MiniCSharpLab\Formatter\SourceFormat.cs:line 150
at Manoli.Utils.CSharpFormat.SourceFormat.FormatCode(String source, Boolean lineNumbers, Boolean alternate, Boolean embedStyleSheet, Boolean subCode) in C:\Users\jeffrey\Documents\Visual Studio 2008\Projects\MiniCSharpLab\MiniCSharpLab\Formatter\SourceFormat.cs:line 193
at Manoli.Utils.CSharpFormat.SourceFormat.FormatCode(String source) in C:\Users\jeffrey\Documents\Visual Studio 2008\Projects\MiniCSharpLab\MiniCSharpLab\Formatter\SourceFormat.cs:line 126
at MiniCSharpLab.FormatCodeHtml.btnCopy_Click(Object sender, EventArgs e) in C:\Users\jeffrey\Documents\Visual Studio 2008\Projects\MiniCSharpLab\MiniCSharpLab\FormatCodeHtml.cs:line 78
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

comments